forked from mirror/redis
Improve comment.
This commit is contained in:
parent
b9c6dcef57
commit
04b6c9d3ad
|
@ -324,8 +324,9 @@ type ClusterOptions struct {
|
||||||
// A seed list of host:port addresses of cluster nodes.
|
// A seed list of host:port addresses of cluster nodes.
|
||||||
Addrs []string
|
Addrs []string
|
||||||
|
|
||||||
// The maximum number of MOVED/ASK redirects to follow before giving up.
|
// The maximum number of retries before giving up. Command is retried
|
||||||
// Default is 16
|
// on network errors and MOVED/ASK redirects.
|
||||||
|
// Default is 16.
|
||||||
MaxRedirects int
|
MaxRedirects int
|
||||||
|
|
||||||
// Following options are copied from Options struct.
|
// Following options are copied from Options struct.
|
||||||
|
|
|
@ -18,9 +18,7 @@ var Logger = log.New(ioutil.Discard, "redis: ", log.LstdFlags)
|
||||||
var (
|
var (
|
||||||
ErrClosed = errors.New("redis: client is closed")
|
ErrClosed = errors.New("redis: client is closed")
|
||||||
ErrPoolTimeout = errors.New("redis: connection pool timeout")
|
ErrPoolTimeout = errors.New("redis: connection pool timeout")
|
||||||
|
errConnStale = errors.New("connection is stale")
|
||||||
errConnClosed = errors.New("connection is closed")
|
|
||||||
errConnStale = errors.New("connection is stale")
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var timers = sync.Pool{
|
var timers = sync.Pool{
|
||||||
|
|
Loading…
Reference in New Issue