Browse Source

移除不需要的db连接

hsun 1 year ago
parent
commit
61d289640c
1 changed files with 0 additions and 7 deletions
  1. 0 7
      models/db.go

+ 0 - 7
models/db.go

@@ -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)