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

Method IsHandoffPending

maintnotifications/pool_hook.go:93–95  ·  view source on GitHub ↗

IsHandoffPending returns true if the given connection has a pending handoff

(conn *pool.Conn)

Source from the content-addressed store, hash-verified

91
92// IsHandoffPending returns true if the given connection has a pending handoff
93func (ph *PoolHook) IsHandoffPending(conn *pool.Conn) bool {
94 return ph.workerManager.isHandoffPending(conn)
95}
96
97// GetPendingMap returns the pending map for testing purposes
98func (ph *PoolHook) GetPendingMap() *sync.Map {

Callers 2

TestConnectionHookFunction · 0.95

Calls 1

isHandoffPendingMethod · 0.80

Tested by 2

TestConnectionHookFunction · 0.76