remove extraneous debug statements

This commit is contained in:
jake 2019-09-15 16:29:47 -07:00
parent 9ce95637cf
commit 7d5b458970

View File

@ -23,9 +23,7 @@ fn client_read<S, R>(sender: &Sender<ClientPoolAction<R>>, client: &mut Client<S
S: SendServerPacket + std::fmt::Debug,
R: RecvServerPacket + std::fmt::Debug,
{
println!("client read");
let pkts = client.read_pkts();
println!("pkts: {:?}", pkts);
for pkt in pkts? {
sender.send(ClientPoolAction::Packet(client.id, pkt)).unwrap();
@ -112,8 +110,6 @@ impl<S, R> ClientPool<S, R> where
});
}
ClientAction::Packet(client_id, pkt) => {
println!("action pkt {:?}", pkt);
println!("clients! {:?} {:?}", client_id, self.clients.get(&client_id).is_some());
self.clients.get_mut(&client_id)
.map(|client| {
client.send_pkt(pkt);
@ -122,7 +118,6 @@ impl<S, R> ClientPool<S, R> where
}
},
Err(err) => {
println!("err! {:?}", err);
match err {
TryRecvError::Empty => break,
TryRecvError::Disconnected => {