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

Method disableMaintNotificationsUpgrades

redis.go:1070–1084  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1068}
1069
1070func (c *baseClient) disableMaintNotificationsUpgrades() error {
1071 c.maintNotificationsManagerLock.Lock()
1072 defer c.maintNotificationsManagerLock.Unlock()
1073
1074 // Close the maintnotifications manager
1075 if c.maintNotificationsManager != nil {
1076 // Closing the manager will also shutdown the pool hook
1077 // and remove it from the pool
1078 if err := c.maintNotificationsManager.Close(); err != nil {
1079 return err
1080 }
1081 c.maintNotificationsManager = nil
1082 }
1083 return nil
1084}
1085
1086// Close closes the client, releasing any open resources.
1087//

Calls 1

CloseMethod · 0.65