forked from mirror/redis
Merge pull request #2275 from stephaniehingtgen/fix-route-randomly-query-param
Read in the route_randomly parameter correctly in cluster mode
This commit is contained in:
commit
8f6bc464a5
|
@ -211,7 +211,7 @@ func setupClusterQueryParams(u *url.URL, o *ClusterOptions) (*ClusterOptions, er
|
||||||
o.MaxRedirects = q.int("max_redirects")
|
o.MaxRedirects = q.int("max_redirects")
|
||||||
o.ReadOnly = q.bool("read_only")
|
o.ReadOnly = q.bool("read_only")
|
||||||
o.RouteByLatency = q.bool("route_by_latency")
|
o.RouteByLatency = q.bool("route_by_latency")
|
||||||
o.RouteByLatency = q.bool("route_randomly")
|
o.RouteRandomly = q.bool("route_randomly")
|
||||||
o.MaxRetries = q.int("max_retries")
|
o.MaxRetries = q.int("max_retries")
|
||||||
o.MinRetryBackoff = q.duration("min_retry_backoff")
|
o.MinRetryBackoff = q.duration("min_retry_backoff")
|
||||||
o.MaxRetryBackoff = q.duration("max_retry_backoff")
|
o.MaxRetryBackoff = q.duration("max_retry_backoff")
|
||||||
|
|
Loading…
Reference in New Issue