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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mumd/src/command.rs') 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(); -- cgit v1.2.1