Skip to content

Commit

Permalink
fix(discovery): fix daemon not starting due to mdns startup failure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
godcong authored Mar 9, 2022
1 parent 83b3ec4 commit be3dbc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/node/libp2p/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ func SetupDiscovery(useMdns bool, mdnsInterval int) func(helpers.MetricsCtx, fx.
if useMdns {
service := mdns.NewMdnsService(host, mdns.ServiceName, handler)
if err := service.Start(); err != nil {
return err
log.Error("error starting mdns service: ", err)
return nil
}

if mdnsInterval == 0 {
Expand Down

0 comments on commit be3dbc2

Please sign in to comment.