Skip to content

Commit

Permalink
support for Redis ACL with username/password pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Apr 11, 2021
1 parent 3bba717 commit 54584d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func createRouterAndStore(config *config.Config, node routing.LocalNode) (router
logger.Infow("using multi-node routing via redis", "address", config.Redis.Address)
rc := redis.NewClient(&redis.Options{
Addr: config.Redis.Address,
Username: config.Redis.Username,
Password: config.Redis.Password,
})
if err = rc.Ping(context.Background()).Err(); err != nil {
Expand Down

0 comments on commit 54584d6

Please sign in to comment.