()
| 281 | } |
| 282 | |
| 283 | func 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). |
| 291 | func getMetricConnectionCountCallback() func(ctx context.Context, delta int, cn *Conn, state string, isPubSub bool) { |
no outgoing calls
no test coverage detected