expose nodeconf config getter
This commit is contained in:
1 parent
f9b306abc7
commit
16daf32edb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ const (
|
||||
NodeTypeCoordinator NodeType = "coordinator"
|
||||
)
|
||||
|
||||
type configGetter interface {
|
||||
type ConfigGetter interface {
|
||||
GetNodes() []NodeConfig
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user