minor tweaks

This commit is contained in:
mfahampshire
2024-11-28 00:00:57 +01:00
parent 13a6f0b5ef
commit 56becc3a34
2 changed files with 5 additions and 3 deletions
-2
View File
@@ -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),