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

Method OnRemove

maintnotifications/pool_hook.go:179–183  ·  view source on GitHub ↗
(_ context.Context, conn *pool.Conn, _ error)

Source from the content-addressed store, hash-verified

177}
178
179func (ph *PoolHook) OnRemove(_ context.Context, conn *pool.Conn, _ error) {
180 if tracker, ok := ph.operationsManager.(maintNotificationsConnTracker); ok && conn != nil {
181 tracker.UntrackMaintNotificationsConn(conn.GetID())
182 }
183}
184
185// Shutdown gracefully shuts down the processor, waiting for workers to complete
186func (ph *PoolHook) Shutdown(ctx context.Context) error {

Callers

nothing calls this directly

Calls 2

GetIDMethod · 0.80

Tested by

no test coverage detected