diff options
| author | Eskil Q <eskilq@kth.se> | 2020-12-25 22:10:52 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2020-12-25 22:10:52 +0100 |
| commit | 01e0cecb52ed6f33ca2003441646afb538304c89 (patch) | |
| tree | 766403680bd6cd5c530fbe3c2866242c527086bc /mumd/src/network/tcp.rs | |
| parent | 4758e817b1372d1e7764f84981b1651436aac1fd (diff) | |
| download | mum-01e0cecb52ed6f33ca2003441646afb538304c89.tar.gz | |
remove dead code
Diffstat (limited to 'mumd/src/network/tcp.rs')
| -rw-r--r-- | mumd/src/network/tcp.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/mumd/src/network/tcp.rs b/mumd/src/network/tcp.rs index f79655a..c1d7a54 100644 --- a/mumd/src/network/tcp.rs +++ b/mumd/src/network/tcp.rs @@ -19,7 +19,6 @@ use tokio::sync::{mpsc, oneshot, watch}; use tokio::time::{self, Duration}; use tokio_native_tls::{TlsConnector, TlsStream}; use tokio_util::codec::{Decoder, Framed}; -// use tokio_util::codec::decoder::Decoder; type TcpSender = SplitSink< Framed<TlsStream<TcpStream>, ControlCodec<Serverbound, Clientbound>>, @@ -56,15 +55,6 @@ pub async fn handle( } } return; - // match connection_info_receiver.changed().await { - // None => { - // return; - // } - // Some(None) => {} - // Some(Some(connection_info)) => { - // break connection_info; - // } - // } }; let (mut sink, stream) = connect( connection_info.socket_addr, @@ -171,9 +161,6 @@ async fn send_packets( sink.borrow_mut().send(packet).await.unwrap(); }, || async { - //clears queue of remaining packets - // while packet_receiver.borrow_mut().try_recv().is_ok() {} - sink.borrow_mut().close().await.unwrap(); }, phase_watcher, @@ -336,10 +323,6 @@ async fn run_until_disconnection<T, F, G, H>( break; } } - // while !matches!( - // phase_watcher.recv().await.unwrap(), - // StatePhase::Disconnected - // ) {} tx.send(true).unwrap(); }; |
