fix publish peers

This commit is contained in:
Matthew R Kasun
2022-01-18 22:32:12 +00:00
parent a86b9bd380
commit 767abc7d5e
3 changed files with 75 additions and 24 deletions

View File

@@ -208,10 +208,6 @@ func runMessageQueue(wg *sync.WaitGroup) {
client.Disconnect(240)
logger.Log(0, "ping sub failed")
}
if token := client.Subscribe("metrics/#", 0, mq.Metrics); token.Wait() && token.Error() != nil {
client.Disconnect(240)
logger.Log(0, "metrics sub failed")
}
if token := client.Subscribe("update/localaddress/#", 0, mq.LocalAddressUpdate); token.Wait() && token.Error() != nil {
client.Disconnect(240)
logger.Log(0, "metrics sub failed")