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

Method Remove

internal/pool/pool.go:1397–1399  ·  view source on GitHub ↗
(ctx context.Context, cn *Conn, reason error)

Source from the content-addressed store, hash-verified

1395}
1396
1397func (p *ConnPool) Remove(ctx context.Context, cn *Conn, reason error) {
1398 p.removeConnInternal(ctx, cn, reason, true)
1399}
1400
1401// RemoveWithoutTurn removes a connection from the pool without freeing a turn.
1402// This should be used when removing a connection from a context that didn't acquire

Callers 1

BenchmarkPoolGetRemoveFunction · 0.95

Calls 1

removeConnInternalMethod · 0.95

Tested by 1

BenchmarkPoolGetRemoveFunction · 0.76