Skip to content

Commit f236053

Browse files
fix: read in route_randomly query param correctly
1 parent 5350c18 commit f236053

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)