aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/client.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-05-19 02:27:27 +0200
committerEskil Queseth <eskilq@kth.se>2021-05-19 02:27:27 +0200
commit5d05d292ddb7f8b28b71abd46930028b6e66dfde (patch)
treeabd10727e7c7e5ec004ec14ced7189d2c1c0687c /mumd/src/client.rs
parent0b2efad3e9aa569c27d339a5eca17c96155b4f9d (diff)
downloadmum-5d05d292ddb7f8b28b71abd46930028b6e66dfde.tar.gz
add support for sending multiple responses
Diffstat (limited to 'mumd/src/client.rs')
-rw-r--r--mumd/src/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/client.rs b/mumd/src/client.rs
index 3c491da..ba9cad4 100644
--- a/mumd/src/client.rs
+++ b/mumd/src/client.rs
@@ -7,13 +7,13 @@ use futures_util::{select, FutureExt};
use mumble_protocol::{Serverbound, control::ControlPacket, crypt::ClientCryptState};
use mumlib::command::{Command, CommandResponse};
use std::sync::{Arc, RwLock};
-use tokio::sync::{mpsc, oneshot, watch};
+use tokio::sync::{mpsc, watch};
pub async fn handle(
state: State,
command_receiver: mpsc::UnboundedReceiver<(
Command,
- oneshot::Sender<mumlib::error::Result<Option<CommandResponse>>>,
+ mpsc::UnboundedSender<mumlib::error::Result<Option<CommandResponse>>>,
)>,
) -> Result<(), ClientError> {
let (connection_info_sender, connection_info_receiver) =