From 190e32ae85d60c2c4437b766f811c47601016bf7 Mon Sep 17 00:00:00 2001 From: Lev Date: Mon, 4 Dec 2023 19:59:34 -0800 Subject: [PATCH] Revert "Reset wait times when checked out successfully (#656)" This reverts commit ec3920d60f7ad26a2b71820b3e3076e8f8ec5978. --- src/stats/client.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/stats/client.rs b/src/stats/client.rs index c3a636d..0079fba 100644 --- a/src/stats/client.rs +++ b/src/stats/client.rs @@ -109,7 +109,6 @@ impl ClientStats { /// Reports a client is done querying the server and is no longer assigned a server connection pub fn idle(&self) { self.state.store(ClientState::Idle, Ordering::Relaxed); - self.wait_start.store(0, Ordering::Relaxed); } /// Reports a client is waiting for a connection @@ -125,7 +124,6 @@ impl ClientStats { /// Reports a client is done waiting for a connection and is about to query the server. pub fn active(&self) { self.state.store(ClientState::Active, Ordering::Relaxed); - self.wait_start.store(0, Ordering::Relaxed); } /// Reports a client has failed to obtain a connection from a connection pool