perf ⚡ 优化配置文件加载

This commit is contained in:
linwenxiang committed 2021-06-09 16:30:24 +08:00
1 parent b8ab38308d
commit f35a808975
4 files changed
+5 -10

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ func run() {
if !generate {
fmt.Println(`start init`)
//1. 读取配置
config.Setup(file.NewSource, file.WithPath(configYml))
config.Setup(file.NewSource(file.WithPath(configYml)))
//2. 设置日志
sdk.Runtime.SetLogger(
logger.SetupLogger(