fix config bug (#2021)

This commit is contained in:
wangzq
2020-09-25 15:14:21 +08:00
committed by GitHub
parent 255fecb4f4
commit a18806c9ef

View File

@@ -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
}