fix
This commit is contained in:
parent
2a40bcce85
commit
3fcbeb2020
@ -25,11 +25,11 @@ type nodeConfStore struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type configGetter interface {
|
type configGetter interface {
|
||||||
NodeConfStorePath() string
|
GetNodeConfStorePath() string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *nodeConfStore) Init(a *app.App) (err error) {
|
func (n *nodeConfStore) Init(a *app.App) (err error) {
|
||||||
n.path = a.MustComponent("config").(configGetter).NodeConfStorePath()
|
n.path = a.MustComponent("config").(configGetter).GetNodeConfStorePath()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ type config struct {
|
|||||||
path string
|
path string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c config) NodeConfStorePath() string {
|
func (c config) GetNodeConfStorePath() string {
|
||||||
return c.path
|
return c.path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user