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

Method Remove

maintnotifications/pool_hook_test.go:70–76  ·  view source on GitHub ↗
(ctx context.Context, conn *pool.Conn, reason error)

Source from the content-addressed store, hash-verified

68}
69
70func (mp *mockPool) Remove(ctx context.Context, conn *pool.Conn, reason error) {
71 mp.mu.Lock()
72 defer mp.mu.Unlock()
73
74 // Use pool.Conn directly - no adapter needed
75 mp.removedConnections[conn.GetID()] = true
76}
77
78func (mp *mockPool) RemoveWithoutTurn(ctx context.Context, conn *pool.Conn, reason error) {
79 // For mock pool, same behavior as Remove since we don't have a turn-based queue

Callers 1

RemoveWithoutTurnMethod · 0.95

Calls 1

GetIDMethod · 0.80

Tested by

no test coverage detected