expose nodeconf config getter
This commit is contained in:
parent
f9b306abc7
commit
16daf32edb
@ -10,7 +10,7 @@ const (
|
||||
NodeTypeCoordinator NodeType = "coordinator"
|
||||
)
|
||||
|
||||
type configGetter interface {
|
||||
type ConfigGetter interface {
|
||||
GetNodes() []NodeConfig
|
||||
}
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ func (n *Node) Capacity() float64 {
|
||||
}
|
||||
|
||||
func (s *service) Init(a *app.App) (err error) {
|
||||
nodesConf := a.MustComponent("config").(configGetter).GetNodes()
|
||||
nodesConf := a.MustComponent("config").(ConfigGetter).GetNodes()
|
||||
s.accountId = a.MustComponent(commonaccount.CName).(commonaccount.Service).Account().PeerId
|
||||
|
||||
fileConfig := &configuration{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user