From 750bc7d15bff09dfece7b7d771af1001226f72a3 Mon Sep 17 00:00:00 2001 From: Pau Freixes Date: Thu, 2 May 2024 12:33:31 +0200 Subject: [PATCH] Rename type name --- bb8/src/inner.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bb8/src/inner.rs b/bb8/src/inner.rs index 684d68a..d51d2f8 100644 --- a/bb8/src/inner.rs +++ b/bb8/src/inner.rs @@ -18,7 +18,7 @@ where M: ManageConnection + Send, { inner: Arc>, - pool_inner_stats: Arc, + pool_inner_stats: Arc, } impl PoolInner @@ -27,7 +27,7 @@ where { pub(crate) fn new(builder: Builder, manager: M) -> Self { let inner = Arc::new(SharedPool::new(builder, manager)); - let pool_inner_stats = Arc::new(SharedPoolInnerStats::new()); + let pool_inner_stats = Arc::new(SharedPoolInnerStatistics::new()); if inner.statics.max_lifetime.is_some() || inner.statics.idle_timeout.is_some() { let start = Instant::now() + inner.statics.reaper_rate; @@ -251,7 +251,7 @@ where struct Reaper { interval: Interval, pool: Weak>, - pool_inner_stats: Weak, + pool_inner_stats: Weak, } impl Reaper { @@ -272,12 +272,12 @@ impl Reaper { } } -struct SharedPoolInnerStats { +struct SharedPoolInnerStatistics { gets: AtomicU64, gets_waited: AtomicU64, } -impl SharedPoolInnerStats { +impl SharedPoolInnerStatistics { fn new() -> Self { Self { gets: AtomicU64::new(0),