|
@@ -40,21 +40,6 @@ func init() {
|
|
|
data_db, _ := orm.GetDB("data")
|
|
|
data_db.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
- _ = orm.RegisterDataBase("gl", "mysql", utils.MYSQL_URL_GL)
|
|
|
- orm.SetMaxIdleConns("gl", 50)
|
|
|
- orm.SetMaxOpenConns("gl", 100)
|
|
|
-
|
|
|
- gl, _ := orm.GetDB("gl")
|
|
|
- gl.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
- _ = orm.RegisterDataBase("comein_data", "mysql", utils.MYSQL_URL_COMEIN_DATA)
|
|
|
- orm.SetMaxIdleConns("comein_data", 50)
|
|
|
- orm.SetMaxOpenConns("comein_data", 100)
|
|
|
-
|
|
|
- comein_datadb, _ := orm.GetDB("comein_data")
|
|
|
- comein_datadb.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
-
|
|
|
orm.Debug = true
|
|
|
orm.DebugLog = orm.NewLog(utils.Binlog)
|
|
|
|