Skip to content

Commit

Permalink
feat(redis): use redis sentinel client
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierboudet committed Apr 10, 2024
1 parent 04b02dd commit 4682749
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions redis_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ func NewRedisTransport(u *url.URL, l Logger, tss *TopicSelectorStore) (Transport
return nil, &TransportError{u.Redacted(), "missing path", err}
}

client := redis.NewClient(&redis.Options{
Addr: path,
Password: "", // no password set
DB: 0, // use default DB
client := redis.NewSentinelClient(&redis.Options{
Addr: path,
})

ctx := context.Background()
Expand Down

0 comments on commit 4682749

Please sign in to comment.