Skip to content

Commit d59f989

Browse files
authored
Merge pull request #162 from Icinga/disable-redis-maint-notifications
redis: disable client maint notifications
2 parents 61b0898 + 12f938c commit d59f989

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redis/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/icinga/icinga-go-library/utils"
1313
"github.com/pkg/errors"
1414
"github.com/redis/go-redis/v9"
15+
"github.com/redis/go-redis/v9/maintnotifications"
1516
"go.uber.org/zap"
1617
"go.uber.org/zap/zapcore"
1718
"golang.org/x/sync/errgroup"
@@ -59,6 +60,9 @@ func NewClientFromConfig(c *Config, logger *logging.Logger) (*Client, error) {
5960
DB: c.Database,
6061
ReadTimeout: c.Options.Timeout,
6162
TLSConfig: tlsConfig,
63+
MaintNotificationsConfig: &maintnotifications.Config{
64+
Mode: maintnotifications.ModeDisabled,
65+
},
6266
}
6367

6468
if utils.IsUnixAddr(c.Host) {

0 commit comments

Comments
 (0)