From 8b26a9f71e01aa2034c140e108a8733e643b4ac1 Mon Sep 17 00:00:00 2001 From: arnaud briche Date: Mon, 24 Aug 2015 10:46:48 +0200 Subject: [PATCH] Add MaxRetries to FailoverOptions --- sentinel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sentinel.go b/sentinel.go index 82d9bc91..255416ec 100644 --- a/sentinel.go +++ b/sentinel.go @@ -31,6 +31,8 @@ type FailoverOptions struct { PoolSize int PoolTimeout time.Duration IdleTimeout time.Duration + + MaxRetries int } func (opt *FailoverOptions) options() *Options { @@ -47,6 +49,8 @@ func (opt *FailoverOptions) options() *Options { PoolSize: opt.PoolSize, PoolTimeout: opt.PoolTimeout, IdleTimeout: opt.IdleTimeout, + + MaxRetries: opt.MaxRetries, } }