fixup default redis default local addr
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
87e2e2b947
commit
4fce633b13
2
redis.go
2
redis.go
@ -711,7 +711,7 @@ func (r *Store) configure() error {
|
|||||||
if len(r.opts.Addrs) > 0 {
|
if len(r.opts.Addrs) > 0 {
|
||||||
universalOptions.Addrs = r.opts.Addrs
|
universalOptions.Addrs = r.opts.Addrs
|
||||||
} else {
|
} else {
|
||||||
universalOptions.Addrs = []string{"redis://127.0.0.1:6379"}
|
universalOptions.Addrs = []string{"127.0.0.1:6379"}
|
||||||
}
|
}
|
||||||
|
|
||||||
r.cli = goredis.NewUniversalClient(universalOptions)
|
r.cli = goredis.NewUniversalClient(universalOptions)
|
||||||
|
Loading…
Reference in New Issue
Block a user