1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

sentinel: add comment.

This commit is contained in:
Vladimir Mihailenco 2015-05-23 14:43:34 +03:00
parent fb9ea75a37
commit 1d02fa85a9

View File

@ -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{