mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-22 10:44:36 +00:00
correct comment
This commit is contained in:
parent
79a14120d9
commit
7a22aa6500
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ pub async fn disconnect_monitor<N: NetworkZone>(
|
|||
mut new_connection_rx: mpsc::UnboundedReceiver<(ConnectionHandle, InternalPeerID<N::Addr>)>,
|
||||
client_pool: Arc<ClientPool<N>>,
|
||||
) {
|
||||
// We need to hold a weak reference otherwise the client pool and this would cause a circular reference
|
||||
// We need to hold a weak reference otherwise the client pool and this would be a circular reference
|
||||
// which means the pool would be leaked.
|
||||
let weak_client_pool = Arc::downgrade(&client_pool);
|
||||
drop(client_pool);
|
||||
|
|
Loading…
Reference in a new issue