mirror of
https://github.com/redis/go-redis.git
synced 2025-12-03 18:31:14 +03:00
Update maintnotifications/manager.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -334,7 +334,7 @@ func (hm *Manager) AddNotificationHook(notificationHook NotificationHook) {
|
||||
hm.hooks = append(hm.hooks, notificationHook)
|
||||
}
|
||||
|
||||
// SetClusterStateReloadCallback sets the callback function that will be called when a SMOVED notification is received.
|
||||
// SetClusterStateReloadCallback sets the callback function that will be called when a SMIGRATED notification is received.
|
||||
// This allows node clients to notify their parent ClusterClient to reload cluster state.
|
||||
func (hm *Manager) SetClusterStateReloadCallback(callback ClusterStateReloadCallback) {
|
||||
hm.clusterStateReloadCallback = callback
|
||||
|
||||
Reference in New Issue
Block a user