expose nodeconf config getter

This commit is contained in:
Sergey Cherepanov authored and Mikhail Iudin committed 2023-03-26 16:22:18 +02:00
1 parent f9b306abc7
commit 16daf32edb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ const (
NodeTypeCoordinator NodeType = "coordinator"
)
type configGetter interface {
type ConfigGetter interface {
GetNodes() []NodeConfig
}
+1 -1
View File
@@ -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{