This commit is contained in:
Liang Ding 2023-02-17 11:37:43 +08:00
parent b94c6b48f3
commit c61e0ef3f2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -230,8 +230,8 @@ func initHistoryDBConnection() {
if nil != err {
logging.LogFatalf("create database failed: %s", err)
}
historyDB.SetMaxIdleConns(1)
historyDB.SetMaxOpenConns(1)
historyDB.SetMaxIdleConns(3)
historyDB.SetMaxOpenConns(3)
historyDB.SetConnMaxLifetime(365 * 24 * time.Hour)
}