fix(discovery): fix daemon not starting due to mdns startup failure (#8704)

This commit is contained in:
godcong 2022-03-09 23:08:24 +08:00 committed by GitHub
parent 83b3ec4a61
commit be3dbc2bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {