Skip to content

Commit

Permalink
add: NewAppNode()
Browse files Browse the repository at this point in the history
  • Loading branch information
phantaic committed Nov 4, 2023
1 parent 740fe9a commit 0b80aba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func NewApp(profileFilePath, nodeId string, isFrontend bool, mode NodeMode) *App
panic(err)
}

return NewAppNode(node, isFrontend, mode)
}

func NewAppNode(node cfacade.INode, isFrontend bool, mode NodeMode) *Application {
// set logger
clog.SetNodeLogger(node)

Expand Down

0 comments on commit 0b80aba

Please sign in to comment.