From 9c931f5edacbaaab746ecf180fac2dd7062d0336 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 11 Apr 2020 23:53:32 +0200 Subject: Keep network status & ring in a tokio::sync::watch advantages - reads don't prevent preparing writes - can be followed from other parts of the system by cloning the receiver --- src/rpc_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpc_server.rs') diff --git a/src/rpc_server.rs b/src/rpc_server.rs index 08fa909d..ddfc5e04 100644 --- a/src/rpc_server.rs +++ b/src/rpc_server.rs @@ -59,8 +59,8 @@ async fn handler( let resp = err_to_msg(match &msg { Message::Ping(ping) => sys.handle_ping(&addr, ping).await, - Message::PullStatus => sys.handle_pull_status().await, - Message::PullConfig => sys.handle_pull_config().await, + Message::PullStatus => sys.handle_pull_status(), + Message::PullConfig => sys.handle_pull_config(), Message::AdvertiseNodesUp(adv) => sys.handle_advertise_nodes_up(adv).await, Message::AdvertiseConfig(adv) => sys.handle_advertise_config(adv).await, -- cgit v1.2.3