We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c5498b commit ec3920dCopy full SHA for ec3920d
src/stats/client.rs
@@ -109,6 +109,7 @@ impl ClientStats {
109
/// Reports a client is done querying the server and is no longer assigned a server connection
110
pub fn idle(&self) {
111
self.state.store(ClientState::Idle, Ordering::Relaxed);
112
+ self.wait_start.store(0, Ordering::Relaxed);
113
}
114
115
/// Reports a client is waiting for a connection
@@ -124,6 +125,7 @@ impl ClientStats {
124
125
/// Reports a client is done waiting for a connection and is about to query the server.
126
pub fn active(&self) {
127
self.state.store(ClientState::Active, Ordering::Relaxed);
128
129
130
131
/// Reports a client has failed to obtain a connection from a connection pool
0 commit comments