mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-1247] Add check for routerInitializer presence (#864)
Co-authored-by: Yaroslav Reshetnyk <yaroslav.r@it-dimension.com>
This commit is contained in:
parent
23a3594c18
commit
32463ce906
@ -61,6 +61,10 @@ func NewNetAdapter(cfg *config.Config) (*NetAdapter, error) {
|
||||
|
||||
// Start begins the operation of the NetAdapter
|
||||
func (na *NetAdapter) Start() error {
|
||||
if na.routerInitializer == nil {
|
||||
return errors.New("routerInitializer was not set")
|
||||
}
|
||||
|
||||
err := na.server.Start()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user