mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-10 10:13:50 +08:00
Today, we don't know if RPCs to atelet fail because of a transport error or a real atelet error + we always crash the actor on atelet errors. So, we end up crashing actors when atelet is upgrading or temporarily unavailable. This PR solve this by: * Not crashing actors when the atelet RPCs return: `codes.Unavailable`, `codes.Canceled` or `codes.DeadlineExceeded:` * Never crashing actors after errors from atelet.Terminate. Terminate() is called during DELETE/REVERT and we plan to also call it during CRASH operations.