diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-21 20:31:42 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-21 20:31:42 +0200 |
| commit | fbf61252b5977fe5ef017f68e75d6c9edae9596a (patch) | |
| tree | 88c95c294936ec14a80a42e3c769ef6fd1db0c28 /mumd/src/command.rs | |
| parent | 64eca3bf729ccc20b82ca37d3ea72e6be872ec0c (diff) | |
| download | mum-fbf61252b5977fe5ef017f68e75d6c9edae9596a.tar.gz | |
remove async from State::handle_command
Diffstat (limited to 'mumd/src/command.rs')
| -rw-r--r-- | mumd/src/command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
