diff --git a/p2p/cuprate-p2p/src/client_pool.rs b/p2p/cuprate-p2p/src/client_pool.rs index c397bede..59d96d30 100644 --- a/p2p/cuprate-p2p/src/client_pool.rs +++ b/p2p/cuprate-p2p/src/client_pool.rs @@ -85,9 +85,8 @@ impl ClientPool { } } - /// Adds a _new_ [`Client`] to the pool, this client should be a new connection, - /// - /// See [`ClientPool::add_client`] to add a [`Client`] which was removed from the pool. + /// Adds a _new_ [`Client`] to the pool, this client should be a new connection, and not already + /// from the pool. pub fn add_new_client(&self, client: Client) { self.new_connection_tx .send((client.info.handle.clone(), client.info.id)) diff --git a/p2p/cuprate-p2p/src/lib.rs b/p2p/cuprate-p2p/src/lib.rs index 7186e877..0c53b78f 100644 --- a/p2p/cuprate-p2p/src/lib.rs +++ b/p2p/cuprate-p2p/src/lib.rs @@ -7,7 +7,7 @@ //! #![allow(dead_code)] -mod client_pool; +pub mod client_pool; pub mod config; pub mod connection_maintainer; mod constants;