From 87f2b4d2fc8835f8adda69adb6b51fd73ffb20a5 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 6 Apr 2020 22:27:51 +0200 Subject: Ununderstandable error --- src/rpc.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/rpc.rs') diff --git a/src/rpc.rs b/src/rpc.rs index 5e72d0f0..d8bb08a8 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -133,7 +133,11 @@ async fn handler(sys: Arc, req: Request, addr: SocketAddr) -> Resu let resp = err_to_msg(match &msg { Message::Ping(ping) => sys.handle_ping(&addr, ping).await, - Message::AdvertiseNode(adv) => sys.handle_advertise_node(adv).await, + Message::PullStatus => sys.handle_pull_status().await, + Message::PullConfig => sys.handle_pull_config().await, + Message::AdvertiseNodesUp(adv) => sys.handle_advertise_nodes_up(adv).await, + Message::AdvertiseConfig(adv) => sys.handle_advertise_config(adv).await, + _ => Ok(Message::Error(format!("Unexpected message: {:?}", msg))), }); -- cgit v1.2.3