Skip to content

Commit

Permalink
🔥 Remove invalid initialization option (#1252)
Browse files Browse the repository at this point in the history
Co-authored-by: Yusuke Kato <[email protected]>
  • Loading branch information
rinx and kpango committed May 25, 2021
1 parent 5a66d20 commit a7452e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/db/kvs/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,6 @@ func (rc *redisClient) newClusterClient(ctx context.Context) (c *redis.ClusterCl
} else {
c = redis.NewClusterClient(&redis.ClusterOptions{
Addrs: rc.addrs,
NewClient: func(opt *redis.Options) *redis.Client {
c, err := rc.newClient(ctx)
if err != nil {
return redis.NewClient(opt)
}
return c
},
Dialer: rc.dialerFunc,
MaxRedirects: rc.maxRedirects,
ReadOnly: rc.readOnly,
Expand Down

0 comments on commit a7452e4

Please sign in to comment.