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

Function getMetricConnectionClosedCallback

internal/pool/pool.go:283–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281}
282
283func getMetricConnectionClosedCallback() func(ctx context.Context, cn *Conn, reason string, err error) {
284 metricCallbackMu.RLock()
285 cb := metricConnectionClosedCallback
286 metricCallbackMu.RUnlock()
287 return cb
288}
289
290// getMetricConnectionCountCallback returns the metric callback for connection count changes (UpDownCounter).
291func getMetricConnectionCountCallback() func(ctx context.Context, delta int, cn *Conn, state string, isPubSub bool) {

Callers 4

putConnMethod · 0.85
removeConnInternalMethod · 0.85
CloseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected