Skip to content

Commit

Permalink
Revert "Reset wait times when checked out successfully (#656)"
Browse files Browse the repository at this point in the history
This reverts commit ec3920d.
  • Loading branch information
levkk committed Dec 5, 2023
1 parent ec3920d commit 190e32a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/stats/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 190e32a

Please sign in to comment.