From fbf61252b5977fe5ef017f68e75d6c9edae9596a Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Wed, 21 Oct 2020 20:31:42 +0200 Subject: remove async from State::handle_command --- mumd/src/command.rs | 2 +- mumd/src/state.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mumd') diff --git a/mumd/src/command.rs b/mumd/src/command.rs index 075bfaf..5407ea3 100644 --- a/mumd/src/command.rs +++ b/mumd/src/command.rs @@ -19,7 +19,7 @@ pub async fn handle( while let Some((command, response_sender)) = command_receiver.recv().await { debug!("Received command {:?}", command); let mut state = state.lock().unwrap(); - let (event, generator) = state.handle_command(command).await; + let (event, generator) = state.handle_command(command); drop(state); if let Some(event) = event { let (tx, rx) = oneshot::channel(); diff --git a/mumd/src/state.rs b/mumd/src/state.rs index f9ed077..7a33716 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -54,7 +54,7 @@ impl State { } //TODO? move bool inside Result - pub async fn handle_command( + pub fn handle_command( &mut self, command: Command, ) -> (Option, Box) -> mumlib::error::Result>>) { -- cgit v1.2.1