From 90c06cdcf50f6414e95e248408524fe0e135bcce Mon Sep 17 00:00:00 2001 From: JeshuaRen <270813223@qq.com> Date: Fri, 17 May 2024 11:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B3=A8=E9=87=8A=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/config/config.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/utils/config/config.go b/utils/config/config.go index 3d797a9..0f4cb04 100644 --- a/utils/config/config.go +++ b/utils/config/config.go @@ -26,18 +26,6 @@ func DefaultLoad(modeulName string, defCfg interface{}) error { return err } - //if strings.Contains(execPath, "scheduler") { - // execPath = "D:\\Work\\Codes\\new\\workspace\\workspace\\scheduler\\common\\assets\\confs\\" - //} - // - //if strings.Contains(execPath, "storage") { - // execPath = "D:\\Work\\Codes\\new\\workspace\\workspace\\storage\\common\\assets\\confs\\" - //} - // - //if strings.Contains(execPath, "gateway") { - // execPath = "D:\\Work\\Codes\\new\\workspace\\workspace\\gateway\\assets\\confs\\" - //} - // TODO 可以考虑根据环境变量读取不同的配置 configFilePath := filepath.Join(filepath.Dir(execPath), "..", "confs", fmt.Sprintf("%s.config.json", modeulName)) return Load(configFilePath, defCfg)