1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-02 06:22:31 +03:00

Update maintnotifications/manager.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Nedyalko Dyakov
2025-11-17 23:14:38 +02:00
committed by GitHub
parent 4631320c94
commit b3a3bdde70

View File

@@ -334,7 +334,7 @@ func (hm *Manager) AddNotificationHook(notificationHook NotificationHook) {
hm.hooks = append(hm.hooks, 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. // This allows node clients to notify their parent ClusterClient to reload cluster state.
func (hm *Manager) SetClusterStateReloadCallback(callback ClusterStateReloadCallback) { func (hm *Manager) SetClusterStateReloadCallback(callback ClusterStateReloadCallback) {
hm.clusterStateReloadCallback = callback hm.clusterStateReloadCallback = callback