This reverts commit 600640294d
,
removing the maxIdleDBConns config setting.
This commit is contained in:
parent
842739bccd
commit
cdc01df24f
|
@ -70,9 +70,6 @@ func main() {
|
|||
scope.MustRegister(dbConnStat)
|
||||
dbConnStat.Set(float64(saConf.DBConfig.MaxDBConns))
|
||||
|
||||
if saConf.DBConfig.MaxIdleDBConns != 0 {
|
||||
dbMap.Db.SetMaxIdleConns(saConf.DBConfig.MaxIdleDBConns)
|
||||
}
|
||||
go sa.ReportDbConnCount(dbMap, scope)
|
||||
|
||||
clk := cmd.Clock()
|
||||
|
|
|
@ -48,9 +48,8 @@ type ServiceConfig struct {
|
|||
type DBConfig struct {
|
||||
DBConnect string
|
||||
// A file containing a connect URL for the DB.
|
||||
DBConnectFile string
|
||||
MaxDBConns int
|
||||
MaxIdleDBConns int
|
||||
DBConnectFile string
|
||||
MaxDBConns int
|
||||
}
|
||||
|
||||
// URL returns the DBConnect URL represented by this DBConfig object, either
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"sa": {
|
||||
"dbConnectFile": "test/secrets/sa_dburl",
|
||||
"maxDBConns": 100,
|
||||
"maxIdleDBConns": 10,
|
||||
"maxConcurrentRPCServerRequests": 100000,
|
||||
"ParallelismPerRPC": 20,
|
||||
"debugAddr": ":8003",
|
||||
|
|
Loading…
Reference in New Issue