diff --git a/crates/simulation/src/distribution/sim.rs b/crates/simulation/src/distribution/sim.rs index 689b175..7cca65f 100644 --- a/crates/simulation/src/distribution/sim.rs +++ b/crates/simulation/src/distribution/sim.rs @@ -30,6 +30,8 @@ pub enum SimAction { RegisterNameWithActor { node_idx: usize, name: String, actor: ActorAddress }, /// Unregister a name on the given node (creates a tombstone). UnregisterName { node_idx: usize, name: String }, + /// Graceful leave — node announces its own death before being removed. + GracefulLeave { node_idx: usize }, } /// Schedule entry for network faults. @@ -415,6 +417,43 @@ fn run_simulation_inner(config: DistributionSimConfig) -> (DistTrace, Vec