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

Function UnregisterPools

internal/otel/metrics.go:288–298  ·  view source on GitHub ↗

UnregisterPools removes connection pools from the global recorder

(connPool pool.Pooler, pubSubPool PubSubPooler)

Source from the content-addressed store, hash-verified

286
287// UnregisterPools removes connection pools from the global recorder
288func UnregisterPools(connPool pool.Pooler, pubSubPool PubSubPooler) {
289 // Check if the global recorder implements PoolRegistrar
290 if registrar, ok := globalRecorder.(PoolRegistrar); ok {
291 if connPool != nil {
292 registrar.UnregisterPool(connPool)
293 }
294 if pubSubPool != nil {
295 registrar.UnregisterPubSubPool(pubSubPool)
296 }
297 }
298}

Callers 1

CloseMethod · 0.92

Calls 2

UnregisterPoolMethod · 0.65
UnregisterPubSubPoolMethod · 0.65

Tested by

no test coverage detected