correct comment

This commit is contained in:
Boog900 2024-05-20 18:48:30 +01:00
parent 79a14120d9
commit 7a22aa6500
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2

View file

@ -24,7 +24,7 @@ pub async fn disconnect_monitor<N: NetworkZone>(
mut new_connection_rx: mpsc::UnboundedReceiver<(ConnectionHandle, InternalPeerID<N::Addr>)>, mut new_connection_rx: mpsc::UnboundedReceiver<(ConnectionHandle, InternalPeerID<N::Addr>)>,
client_pool: Arc<ClientPool<N>>, 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. // which means the pool would be leaked.
let weak_client_pool = Arc::downgrade(&client_pool); let weak_client_pool = Arc::downgrade(&client_pool);
drop(client_pool); drop(client_pool);