mirror of
https://github.com/redis/go-redis.git
synced 2025-12-02 06:22:31 +03:00
Update internal/pool/conn_state.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user