fix config bug (#2021)
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
// NewConfig returns new config
|
// NewConfig returns new config
|
||||||
func NewConfig(store store.Store, key string) (config.Config, error) {
|
func NewConfig(store store.Store, key string) (config.Config, error) {
|
||||||
return newConfig(store)
|
return newConfig(store, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
type conf struct {
|
type conf struct {
|
||||||
@@ -15,9 +15,10 @@ type conf struct {
|
|||||||
store store.Store
|
store store.Store
|
||||||
}
|
}
|
||||||
|
|
||||||
func newConfig(store store.Store) (*conf, error) {
|
func newConfig(store store.Store, key string) (*conf, error) {
|
||||||
return &conf{
|
return &conf{
|
||||||
store: store,
|
store: store,
|
||||||
|
key: key,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user