diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-03-24 21:38:51 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-03-24 21:38:51 +0100 |
| commit | d484c05e56194346944b295968c66ccc0e543534 (patch) | |
| tree | 41ee9fba2ad0841bffbd04b805ae6d675be7fb52 /mumd/src/client.rs | |
| parent | a5c26eaad44c45da852027d707bf1d8e838ed901 (diff) | |
| download | mum-d484c05e56194346944b295968c66ccc0e543534.tar.gz | |
remove ipc-channel dependency
Diffstat (limited to 'mumd/src/client.rs')
| -rw-r--r-- | mumd/src/client.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mumd/src/client.rs b/mumd/src/client.rs index 84c1ea1..cdae7eb 100644 --- a/mumd/src/client.rs +++ b/mumd/src/client.rs @@ -2,16 +2,15 @@ use crate::command; use crate::network::{tcp, udp, ConnectionInfo}; use crate::state::State; -use ipc_channel::ipc::IpcSender; use mumble_protocol::{Serverbound, control::ControlPacket, crypt::ClientCryptState}; use mumlib::command::{Command, CommandResponse}; use std::sync::Arc; -use tokio::{join, sync::{mpsc, watch, Mutex}}; +use tokio::{join, sync::{Mutex, mpsc, oneshot, watch}}; pub async fn handle( command_receiver: mpsc::UnboundedReceiver<( Command, - IpcSender<mumlib::error::Result<Option<CommandResponse>>>, + oneshot::Sender<mumlib::error::Result<Option<CommandResponse>>>, )>, ) { let (connection_info_sender, connection_info_receiver) = |
