diff --git a/internal/pool/conn_state.go b/internal/pool/conn_state.go index bbd7d1b3..32fc5058 100644 --- a/internal/pool/conn_state.go +++ b/internal/pool/conn_state.go @@ -250,7 +250,8 @@ func (sm *ConnStateMachine) AwaitAndTransition( return sm.GetState(), ctx.Err() case err := <-w.done: // Transition completed (or failed) - // Note: waiterCount is decremented in notifyWaiters when waiter is removed + // Note: waiterCount is decremented either in notifyWaiters (when the waiter is notified and removed) + // or here (on timeout/cancellation). return sm.GetState(), err } }