aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src/client.rs')
-rw-r--r--mumd/src/client.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mumd/src/client.rs b/mumd/src/client.rs
index cdae7eb..6b66731 100644
--- a/mumd/src/client.rs
+++ b/mumd/src/client.rs
@@ -8,6 +8,7 @@ use std::sync::Arc;
use tokio::{join, sync::{Mutex, mpsc, oneshot, watch}};
pub async fn handle(
+ state: State,
command_receiver: mpsc::UnboundedReceiver<(
Command,
oneshot::Sender<mumlib::error::Result<Option<CommandResponse>>>,
@@ -24,8 +25,8 @@ pub async fn handle(
let (response_sender, response_receiver) =
mpsc::unbounded_channel();
- let state = State::new();
let state = Arc::new(Mutex::new(state));
+
join!(
tcp::handle(
Arc::clone(&state),