From 7efb1f1966879f234fb55d629ec16a576f2bef20 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Thu, 29 Aug 2024 16:47:40 -0400 Subject: [PATCH] reset redis timeout back to 1 minute --- database/db.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/db.go b/database/db.go index 9a53b07f..b1b54671 100644 --- a/database/db.go +++ b/database/db.go @@ -36,8 +36,8 @@ func InitializeDb() (*Instance, error) { Addr: addr, DB: db, DialTimeout: 10 * time.Second, - ReadTimeout: 5 * time.Second, - WriteTimeout: 5 * time.Second, + ReadTimeout: 1 * time.Minute, + WriteTimeout: 1 * time.Minute, } } else { redisOptions = &redis.Options{ @@ -45,8 +45,8 @@ func InitializeDb() (*Instance, error) { Password: password, DB: db, DialTimeout: 10 * time.Second, - ReadTimeout: 5 * time.Second, - WriteTimeout: 5 * time.Second, + ReadTimeout: 1 * time.Minute, + WriteTimeout: 1 * time.Minute, } }