deb00809 by slene

orm add missed SetMaxIdleConns

1 parent 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())
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!