fix: read in route_randomly query param correctly

This commit is contained in:
Stephanie Hingtgen 2022-11-04 11:17:22 -06:00 committed by GitHub
parent 5350c18740
commit f236053735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")