Skip to content

Commit 8f6bc46

Browse files
authored
Merge pull request #2275 from stephaniehingtgen/fix-route-randomly-query-param
Read in the route_randomly parameter correctly in cluster mode
2 parents 5350c18 + f236053 commit 8f6bc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func setupClusterQueryParams(u *url.URL, o *ClusterOptions) (*ClusterOptions, er
211211
o.MaxRedirects = q.int("max_redirects")
212212
o.ReadOnly = q.bool("read_only")
213213
o.RouteByLatency = q.bool("route_by_latency")
214-
o.RouteByLatency = q.bool("route_randomly")
214+
o.RouteRandomly = q.bool("route_randomly")
215215
o.MaxRetries = q.int("max_retries")
216216
o.MinRetryBackoff = q.duration("min_retry_backoff")
217217
o.MaxRetryBackoff = q.duration("max_retry_backoff")

0 commit comments

Comments
 (0)