Skip to content

Commit

Permalink
Merge pull request redis#154 from arnaudbriche/master
Browse files Browse the repository at this point in the history
Add MaxRetries to FailoverOptions
  • Loading branch information
vmihailenco committed Aug 24, 2015
2 parents 5710d68 + 8b26a9f commit 73e1e9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sentinel.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type FailoverOptions struct {
PoolSize int
PoolTimeout time.Duration
IdleTimeout time.Duration

MaxRetries int
}

func (opt *FailoverOptions) options() *Options {
Expand All @@ -47,6 +49,8 @@ func (opt *FailoverOptions) options() *Options {
PoolSize: opt.PoolSize,
PoolTimeout: opt.PoolTimeout,
IdleTimeout: opt.IdleTimeout,

MaxRetries: opt.MaxRetries,
}
}

Expand Down

0 comments on commit 73e1e9f

Please sign in to comment.