Merge pull request #154 from arnaudbriche/master

Add MaxRetries to FailoverOptions
This commit is contained in:
Vladimir Mihailenco 2015-08-24 18:52:59 +03:00
commit 73e1e9f501
1 changed files with 4 additions and 0 deletions

View File

@ -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,
}
}