优化启动速度

This commit is contained in:
GoEdgeLab
2023-04-10 20:57:38 +08:00
parent c8d75500c7
commit 00691871fb
2 changed files with 8 additions and 12 deletions

View File

@@ -2,16 +2,7 @@ package setup
import (
_ "embed"
"encoding/json"
"github.com/iwind/TeaGo/logs"
)
//go:embed sql.json
var sqlData []byte
func init() {
err := json.Unmarshal(sqlData, LatestSQLResult)
if err != nil {
logs.Println("[ERROR]load sql failed: " + err.Error())
}
}