minor tweaks
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//!
|
||||
|
||||
// TODO EXAMPLE ONCE FINISHED
|
||||
|
||||
@@ -60,7 +60,7 @@ impl ClientPool {
|
||||
let spawned_clients = self.clients.read().await.len();
|
||||
let addresses = self;
|
||||
debug!(
|
||||
"Currently spawned clients: {}: {:?} ",
|
||||
"Currently spawned clients: {}: {:?}",
|
||||
spawned_clients, addresses
|
||||
);
|
||||
if spawned_clients >= self.client_pool_reserve_number {
|
||||
@@ -103,6 +103,10 @@ impl ClientPool {
|
||||
self.clients.read().await.len()
|
||||
}
|
||||
|
||||
pub async fn get_pool_reserve(&self) -> usize {
|
||||
self.client_pool_reserve_number
|
||||
}
|
||||
|
||||
pub fn clone(&self) -> Self {
|
||||
Self {
|
||||
clients: Arc::clone(&self.clients),
|
||||
|
||||
Reference in New Issue
Block a user