MCPcopy
hub / github.com/redis/go-redis / RemoveWithoutTurn

Method RemoveWithoutTurn

internal/pool/pool_sticky.go:128–130  ·  view source on GitHub ↗

RemoveWithoutTurn has the same behavior as Remove for StickyConnPool since StickyConnPool doesn't use a turn-based queue system.

(ctx context.Context, cn *Conn, reason error)

Source from the content-addressed store, hash-verified

126// RemoveWithoutTurn has the same behavior as Remove for StickyConnPool
127// since StickyConnPool doesn't use a turn-based queue system.
128func (p *StickyConnPool) RemoveWithoutTurn(ctx context.Context, cn *Conn, reason error) {
129 p.Remove(ctx, cn, reason)
130}
131
132func (p *StickyConnPool) Close() error {
133 if shared := atomic.AddInt32(&p.shared, -1); shared > 0 {

Callers

nothing calls this directly

Calls 1

RemoveMethod · 0.95

Tested by

no test coverage detected