fixup default redis default local addr

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-10-06 18:49:50 +03:00
parent 87e2e2b947
commit 4fce633b13

View File

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