From 3435c67e68baa8b648e2c7eecdf8ab0525865f3a Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Wed, 25 Dec 2019 15:12:11 +0800 Subject: [PATCH] Fix: ParseWithBytes should recive buffer and parse buffer --- hub/executor/executor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 7d44d974..ac45c172 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -65,12 +65,12 @@ func ParseWithPath(path string) (*config.Config, error) { return nil, err } - return config.Parse(buf) + return ParseWithBytes(buf) } -// Parse config with default config path +// ParseWithBytes config with buffer func ParseWithBytes(buf []byte) (*config.Config, error) { - return ParseWithPath(C.Path.Config()) + return config.Parse(buf) } // ApplyConfig dispatch configure to all parts