mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-12 10:35:06 +08:00
UpdateActor now takes an ActorRef, an ActorPrecondition, and a mutate callback. The store reads the stored actor inside the WATCH transaction, checks the precondition against that value, and hands it to mutate, which edits it in place. The storage layer retries up to 5 times when a concurrent write invalidates it, re-running mutate against the newer state I still need to migrate the other callers of store.UpdateActor to avoid calling GetActor outside of the closure function. #763 > It's a good idea to open an issue first for discussion. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR