mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-28 00:10:05 +08:00
Three failure-semantics gaps in the actor refactor: - The blocking cache writer published the cache inside a task that a preemption detaches, so a discard could delete the cache, ack the config-write holder, and still leave a published cache behind it. The rename and metadata write now run on the actor after the blocking write's await, so only a surviving future can publish. - The discard ack awaited a bulk unlink while the executor held the config write lock. The cache is now invalidated by an O(1) rename and unlinked detached. - A panic in the actor ended all updating for the rest of the process; the global panic hook logs it, but nothing recovered. The loop now runs catch_unwind epochs, restarting with the mailbox and the daily check backed off.