From 0f192a96b51a7606c2a993637b11da047ce97884 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 5 Apr 2021 23:21:25 +0200 Subject: small simplify --- src/rpc/membership.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rpc/membership.rs b/src/rpc/membership.rs index bcf98357..9fb24ad4 100644 --- a/src/rpc/membership.rs +++ b/src/rpc/membership.rs @@ -522,7 +522,6 @@ impl System { .broadcast(Message::AdvertiseConfig(adv.clone()), PING_TIMEOUT) .map(Ok), ); - self.background.spawn(self.clone().save_network_config()); } @@ -660,10 +659,9 @@ impl System { } } - let status = Arc::new(status); updaters .update_status - .send(status.clone()) + .send(Arc::new(status)) .expect("Could not update internal membership status"); } } -- cgit v1.2.3