File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ impl ClientStats {
109
109
/// Reports a client is done querying the server and is no longer assigned a server connection
110
110
pub fn idle ( & self ) {
111
111
self . state . store ( ClientState :: Idle , Ordering :: Relaxed ) ;
112
+ self . wait_start . store ( 0 , Ordering :: Relaxed ) ;
112
113
}
113
114
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.
125
126
pub fn active ( & self ) {
126
127
self . state . store ( ClientState :: Active , Ordering :: Relaxed ) ;
128
+ self . wait_start . store ( 0 , Ordering :: Relaxed ) ;
127
129
}
128
130
129
131
/// Reports a client has failed to obtain a connection from a connection pool
You can’t perform that action at this time.
0 commit comments