diff --git a/exercise-solutions/async-chat/src/server.rs b/exercise-solutions/async-chat/src/server.rs index be50c4e..5e9eaea 100644 --- a/exercise-solutions/async-chat/src/server.rs +++ b/exercise-solutions/async-chat/src/server.rs @@ -124,6 +124,7 @@ async fn broker_loop(mut events: Receiver) { disconnect = disconnect_receiver.recv() => { let (name, _pending_messages) = disconnect.unwrap(); assert!(peers.remove(&name).is_some()); + println!("user {} disconnected", name); continue; }, };