set judge.query.maxConn default to 100

This commit is contained in:
UlricQin 2020-07-01 16:27:26 +08:00
parent 5c258520a2
commit 01aa9352aa
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
query: query:
maxConn: 100
connTimeout: 1000 connTimeout: 1000
callTimeout: 2000 callTimeout: 2000
indexCallTimeout: 2000 indexCallTimeout: 2000

View File

@ -44,7 +44,7 @@ func Parse(conf string) error {
} }
viper.SetDefault("query", map[string]interface{}{ viper.SetDefault("query", map[string]interface{}{
"maxConn": 10, "maxConn": 100,
"maxIdle": 10, "maxIdle": 10,
"connTimeout": 1000, "connTimeout": 1000,
"callTimeout": 2000, "callTimeout": 2000,