From a252cfdfdfb3bf57d55511129655f48658b569c8 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 27 Aug 2021 23:38:51 +0200 Subject: [PATCH] Introduce a facet immediately under the root facet for user code to run in, to allow something akin to replacement of the root facet --- syndicate/src/actor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syndicate/src/actor.rs b/syndicate/src/actor.rs index bff25f5..94eb5a4 100644 --- a/syndicate/src/actor.rs +++ b/syndicate/src/actor.rs @@ -1095,8 +1095,7 @@ impl Actor { tokio::spawn(async move { tracing::trace!("start"); self.run(|t| { - boot(t)?; - t.stop_if_inert(); + t.facet(boot)?; Ok(()) }).await; let result = self.ac_ref.exit_status().expect("terminated");