Skip to content

Commit

Permalink
nilaway
Browse files Browse the repository at this point in the history
  • Loading branch information
ocnc2 committed Aug 25, 2024
1 parent 549ce2e commit 2611ba0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mod/node-core/pkg/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,15 @@ func (nb *NodeBuilder[NodeT, LoggerT, LoggerConfigT]) Build(
); err != nil {
panic(err)
}
// attach the logger config
logger.WithConfig(any(config.GetLogger()).(LoggerConfigT))

if config == nil {
panic("config is nil")
}
if apiBackend == nil {
panic("node or api backend is nil")
}

// TODO: so hood
logger.WithConfig(any(config.GetLogger()).(LoggerConfigT))
apiBackend.AttachQueryBackend(cmtService)
return beaconNode
}

0 comments on commit 2611ba0

Please sign in to comment.