diff --git a/src/common/clientpool.rs b/src/common/clientpool.rs index ddf5fb5..dafd845 100644 --- a/src/common/clientpool.rs +++ b/src/common/clientpool.rs @@ -28,7 +28,7 @@ fn client_read(sender: &Sender>, client: &mut Client ClientPool where fn new_client(&mut self) { let (socket, _addr) = self.listener.accept().unwrap(); - + let client_id = self.client_id_incr; self.client_id_incr += 1; @@ -134,11 +134,11 @@ impl ClientPool where } } } - + } } - + pub fn io_loop(mut self) { self.poll.register(&self.listener, Token(0), Ready::readable(), PollOpt::edge()).unwrap(); self.poll.register(&self.receiver, Token(1), Ready::readable(), PollOpt::edge()).unwrap();