优化连接数的配置
This commit is contained in:
@ -25,14 +25,16 @@ var (
|
||||
// Date : 11:24 2022/5/16
|
||||
func init() {
|
||||
cfg := &DBConfig{
|
||||
Host: "localhost",
|
||||
Port: 3306,
|
||||
Database: "gateway",
|
||||
Username: "root",
|
||||
Password: "zhangdeman",
|
||||
Charset: "utf8mb4",
|
||||
MaxOpenConnection: 100,
|
||||
MaxIdleConnection: 100,
|
||||
Host: "localhost",
|
||||
Port: 3306,
|
||||
Database: "gateway",
|
||||
Username: "root",
|
||||
Password: "zhangdeman",
|
||||
Charset: "utf8mb4",
|
||||
Connection: Connection{
|
||||
MaxOpen: 100,
|
||||
MaxIdle: 100,
|
||||
},
|
||||
}
|
||||
testDBClient, _ = NewDBClient(cfg, cfg, nil, nil, nil)
|
||||
}
|
||||
|
Reference in New Issue
Block a user