Skip to content

Commit

Permalink
redis_cache: change client time out from 50ms to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
urlesistiana committed Oct 3, 2022
1 parent 8bfe6e9 commit 0861ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/redis_cache/redis_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (opts *RedisCacheOpts) Init() error {
if opts.Client == nil {
return errors.New("nil client")
}
utils.SetDefaultNum(&opts.ClientTimeout, time.Millisecond*50)
utils.SetDefaultNum(&opts.ClientTimeout, time.Second)
if opts.Logger == nil {
opts.Logger = nopLogger
}
Expand Down

0 comments on commit 0861ef1

Please sign in to comment.