We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f52ab34 commit d64c4ebCopy full SHA for d64c4eb
internal/pool/conn_state.go
@@ -250,7 +250,8 @@ func (sm *ConnStateMachine) AwaitAndTransition(
250
return sm.GetState(), ctx.Err()
251
case err := <-w.done:
252
// Transition completed (or failed)
253
- // Note: waiterCount is decremented in notifyWaiters when waiter is removed
+ // Note: waiterCount is decremented either in notifyWaiters (when the waiter is notified and removed)
254
+ // or here (on timeout/cancellation).
255
return sm.GetState(), err
256
}
257
0 commit comments