From 9b8e5970665bb46cea485d1e2c6e6d34c929c4e5 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 6 Apr 2024 16:44:56 +0800 Subject: [PATCH] remove SetSqlxDB func --- app/pkg/db/db.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/pkg/db/db.go b/app/pkg/db/db.go index 789865e..0195790 100644 --- a/app/pkg/db/db.go +++ b/app/pkg/db/db.go @@ -19,10 +19,6 @@ func GetSqlxDB() *sqlx.DB { return safeDb.Load() } -func SetSqlxDB(db *sqlx.DB) { - safeDb.Store(db) -} - func InitDb() (*safety.Var[*sqlx.DB], error) { c := config.GetConfig() dsn := c.Mysql.Dsn.GetDsn()