Merge pull request #2025 from gravitl/duplicate_peer_update

remove duplicate peer update
This commit is contained in:
dcarns 2023-02-13 12:55:53 -05:00 committed by GitHub
commit e308ed1866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,12 +168,6 @@ func UpdateHost(client mqtt.Client, msg mqtt.Message) {
logger.Log(0, "failed to pulish peer update: ", err.Error()) logger.Log(0, "failed to pulish peer update: ", err.Error())
} }
} }
if sendPeerUpdate {
err := PublishPeerUpdate()
if err != nil {
logger.Log(0, "failed to pulish peer update: ", err.Error())
}
}
// if servercfg.Is_EE && ifaceDelta { // if servercfg.Is_EE && ifaceDelta {
// if err = logic.EnterpriseResetAllPeersFailovers(currentHost.ID.String(), currentHost.Network); err != nil { // if err = logic.EnterpriseResetAllPeersFailovers(currentHost.ID.String(), currentHost.Network); err != nil {
// logger.Log(1, "failed to reset failover list during node update", currentHost.ID.String(), currentHost.Network) // logger.Log(1, "failed to reset failover list during node update", currentHost.ID.String(), currentHost.Network)