From 78557716f628eeffa7aabd2b9ffe59ecd8194442 Mon Sep 17 00:00:00 2001 From: kzkzzzz Date: Wed, 24 May 2023 21:45:39 +0800 Subject: [PATCH] update --- myredis/redis.go | 1 + 1 file changed, 1 insertion(+) diff --git a/myredis/redis.go b/myredis/redis.go index f3c246c..dabca16 100644 --- a/myredis/redis.go +++ b/myredis/redis.go @@ -109,6 +109,7 @@ func New(config *Config) (*MyRedis, error) { MinIdleConns: config.MinIdleConn, MaxConnAge: maxConnAge, IdleTimeout: idleTimeout, + DialTimeout: time.Second * 2, }) ctx := context.Background()