Skip to content

Commit d64c4eb

Browse files
ndyakovCopilot
andauthored
Update internal/pool/conn_state.go
Co-authored-by: Copilot <[email protected]>
1 parent f52ab34 commit d64c4eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/pool/conn_state.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ func (sm *ConnStateMachine) AwaitAndTransition(
250250
return sm.GetState(), ctx.Err()
251251
case err := <-w.done:
252252
// Transition completed (or failed)
253-
// Note: waiterCount is decremented in notifyWaiters when waiter is removed
253+
// Note: waiterCount is decremented either in notifyWaiters (when the waiter is notified and removed)
254+
// or here (on timeout/cancellation).
254255
return sm.GetState(), err
255256
}
256257
}

0 commit comments

Comments
 (0)