Skip to content

Commit 55aa026

Browse files
authored
fix(failover): Failover Client MaintNotificationsConfig (#3600)
1 parent 9c425cb commit 55aa026

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

sentinel.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/redis/go-redis/v9/internal/pool"
1818
"github.com/redis/go-redis/v9/internal/rand"
1919
"github.com/redis/go-redis/v9/internal/util"
20+
"github.com/redis/go-redis/v9/maintnotifications"
2021
"github.com/redis/go-redis/v9/push"
2122
)
2223

@@ -194,6 +195,10 @@ func (opt *FailoverOptions) clientOptions() *Options {
194195

195196
IdentitySuffix: opt.IdentitySuffix,
196197
UnstableResp3: opt.UnstableResp3,
198+
199+
MaintNotificationsConfig: &maintnotifications.Config{
200+
Mode: maintnotifications.ModeDisabled,
201+
},
197202
}
198203
}
199204

@@ -238,6 +243,10 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
238243

239244
IdentitySuffix: opt.IdentitySuffix,
240245
UnstableResp3: opt.UnstableResp3,
246+
247+
MaintNotificationsConfig: &maintnotifications.Config{
248+
Mode: maintnotifications.ModeDisabled,
249+
},
241250
}
242251
}
243252

@@ -287,6 +296,10 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
287296
DisableIndentity: opt.DisableIndentity,
288297
IdentitySuffix: opt.IdentitySuffix,
289298
FailingTimeoutSeconds: opt.FailingTimeoutSeconds,
299+
300+
MaintNotificationsConfig: &maintnotifications.Config{
301+
Mode: maintnotifications.ModeDisabled,
302+
},
290303
}
291304
}
292305

0 commit comments

Comments
 (0)