Compare commits

...

1 Commits

Author SHA1 Message Date
hoteas 432d59d483 数据库操作优化 2022-08-17 16:42:46 +08:00
+1 -2
View File
@@ -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
}