From f236053735d10aec5e6e31fc3ced1b2e53292554 Mon Sep 17 00:00:00 2001 From: Stephanie Hingtgen Date: Fri, 4 Nov 2022 11:17:22 -0600 Subject: [PATCH] fix: read in route_randomly query param correctly --- cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster.go b/cluster.go index a7cc541..cc077b3 100644 --- a/cluster.go +++ b/cluster.go @@ -211,7 +211,7 @@ func setupClusterQueryParams(u *url.URL, o *ClusterOptions) (*ClusterOptions, er o.MaxRedirects = q.int("max_redirects") o.ReadOnly = q.bool("read_only") 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.MinRetryBackoff = q.duration("min_retry_backoff") o.MaxRetryBackoff = q.duration("max_retry_backoff")