1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Make readOnly a private field so that only cluster client can use it

This commit is contained in:
wenjun.yan
2017-07-25 10:35:41 +09:00
parent e8e77ae5e4
commit 4e1d2a01db
4 changed files with 7 additions and 9 deletions

View File

@ -88,7 +88,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
MinRetryBackoff: opt.MinRetryBackoff,
MaxRetryBackoff: opt.MaxRetryBackoff,
Password: opt.Password,
ReadOnly: opt.ReadOnly,
readOnly: opt.ReadOnly,
DialTimeout: opt.DialTimeout,
ReadTimeout: opt.ReadTimeout,