From 7ebb537c804cf74322fe4910969e8af4f938683b Mon Sep 17 00:00:00 2001 From: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:01:41 +0200 Subject: [PATCH] remove duplicate declaration (#2773) --- ring.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ring.go b/ring.go index d39856bc..367a542e 100644 --- a/ring.go +++ b/ring.go @@ -84,8 +84,6 @@ type RingOptions struct { WriteTimeout time.Duration ContextTimeoutEnabled bool - ContextTimeoutEnabled bool - // PoolFIFO uses FIFO mode for each node connection pool GET/PUT (default LIFO). PoolFIFO bool @@ -155,8 +153,6 @@ func (opt *RingOptions) clientOptions() *Options { WriteTimeout: opt.WriteTimeout, ContextTimeoutEnabled: opt.ContextTimeoutEnabled, - ContextTimeoutEnabled: opt.ContextTimeoutEnabled, - PoolFIFO: opt.PoolFIFO, PoolSize: opt.PoolSize, PoolTimeout: opt.PoolTimeout,