From 37e7c29c48bb6056bccc61f10e235cd08c3af771 Mon Sep 17 00:00:00 2001 From: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com> Date: Tue, 7 May 2024 01:18:29 +0100 Subject: [PATCH] fix docs --- p2p/cuprate-p2p/src/client_pool.rs | 5 ++--- p2p/cuprate-p2p/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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;