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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user