From 432d59d483275b4eff46b3798e4f779e186a51f7 Mon Sep 17 00:00:00 2001 From: hoteas Date: Wed, 17 Aug 2022 16:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/hotimedb.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/hotimedb.go b/db/hotimedb.go index dc976f8..8b0f0da 100644 --- a/db/hotimedb.go +++ b/db/hotimedb.go @@ -13,7 +13,6 @@ import ( "reflect" "sort" "strings" - "time" ) type HoTimeDB struct { @@ -315,7 +314,7 @@ func (that *HoTimeDB) InitDb(err ...*Error) *Error { e := that.SlaveDB.Ping() that.LastErr.SetError(e) } - that.DB.SetConnMaxLifetime(time.Second) + //that.DB.SetConnMaxLifetime(time.Second) return that.LastErr }