From a18806c9ef376f5241a5e91cefeae34da2e7eafd Mon Sep 17 00:00:00 2001 From: wangzq <1437987627@qq.com> Date: Fri, 25 Sep 2020 15:14:21 +0800 Subject: [PATCH] fix config bug (#2021) --- config/store/store.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/store/store.go b/config/store/store.go index e881cf16..63631973 100644 --- a/config/store/store.go +++ b/config/store/store.go @@ -7,7 +7,7 @@ import ( // NewConfig returns new config func NewConfig(store store.Store, key string) (config.Config, error) { - return newConfig(store) + return newConfig(store, key) } type conf struct { @@ -15,9 +15,10 @@ type conf struct { store store.Store } -func newConfig(store store.Store) (*conf, error) { +func newConfig(store store.Store, key string) (*conf, error) { return &conf{ store: store, + key: key, }, nil }