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

Method maintNotificationsConnSnapshot

maintnotifications/manager.go:274–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272}
273
274func (hm *Manager) maintNotificationsConnSnapshot() []*pool.Conn {
275 var conns []*pool.Conn
276 hm.maintNotificationsConns.Range(func(_, value interface{}) bool {
277 if cn, ok := value.(*pool.Conn); ok {
278 conns = append(conns, cn)
279 }
280 return true
281 })
282 return conns
283}
284
285func (hm *Manager) retireMaintNotificationsConns(ctx context.Context) {
286 conns := hm.maintNotificationsConnSnapshot()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected