mirror of https://github.com/go-redis/redis.git
sentinel: add comment.
This commit is contained in:
parent
fb9ea75a37
commit
1d02fa85a9
|
@ -84,6 +84,8 @@ func (opt *FailoverOptions) options() *options {
|
|||
}
|
||||
}
|
||||
|
||||
// NewFailoverClient returns Redis client with automatic failover
|
||||
// capabilities using Redis Sentinel.
|
||||
func NewFailoverClient(failoverOpt *FailoverOptions) *Client {
|
||||
opt := failoverOpt.options()
|
||||
failover := &sentinelFailover{
|
||||
|
|
Loading…
Reference in New Issue