提交 deb00809 编写于 作者: S slene

orm add missed SetMaxIdleConns

上级 eb06435f
......@@ -118,6 +118,8 @@ func RegisterDataBase(name, driverName, dataSource string, maxIdle int) {
goto end
}
al.DB.SetMaxIdleConns(al.MaxIdle)
err = al.DB.Ping()
if err != nil {
err = fmt.Errorf("register db `%s`, %s", name, err.Error())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册