refactor: rename timeout ctx
This commit is contained in:
1 parent
d6b0b8ea36
commit
127c57dc3a
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -45,7 +45,7 @@ func New(opts ...OptionFn) (Cache, error) {
|
||||
Password: password,
|
||||
})
|
||||
|
||||
if err = client.Ping(tool.CtxTimeout(cfg.ctx, 5)).Err(); err != nil {
|
||||
if err = client.Ping(tool.TimeoutCtx(cfg.ctx, 5)).Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user