mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-09 12:00:25 +08:00
优化启动速度
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user