|
@@ -26,13 +26,6 @@ func init() {
|
|
|
data_db, _ := orm.GetDB("data")
|
|
|
data_db.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
- _ = orm.RegisterDataBase("edb", "mysql", utils.MYSQL_URL_EDB)
|
|
|
- orm.SetMaxIdleConns("edb", 50)
|
|
|
- orm.SetMaxOpenConns("edb", 100)
|
|
|
-
|
|
|
- edb_db, _ := orm.GetDB("edb")
|
|
|
- edb_db.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
orm.Debug = true
|
|
|
orm.DebugLog = orm.NewLog(utils.Binlog)
|
|
|
|