Browse Source

remove peerUpdate call control

Max Ma 9 months ago
parent
commit
553b05564a
1 changed files with 1 additions and 7 deletions
  1. 1 7
      mq/publishers.go

+ 1 - 7
mq/publishers.go

@@ -15,14 +15,8 @@ import (
 	"golang.org/x/exp/slog"
 	"golang.org/x/exp/slog"
 )
 )
 
 
-var running bool
-
 // PublishPeerUpdate --- determines and publishes a peer update to all the hosts
 // PublishPeerUpdate --- determines and publishes a peer update to all the hosts
 func PublishPeerUpdate(replacePeers bool) error {
 func PublishPeerUpdate(replacePeers bool) error {
-	if running {
-		return nil
-	}
-	running = true
 
 
 	if !servercfg.IsMessageQueueBackend() {
 	if !servercfg.IsMessageQueueBackend() {
 		return nil
 		return nil
@@ -55,7 +49,7 @@ func PublishPeerUpdate(replacePeers bool) error {
 			}
 			}
 		}(host)
 		}(host)
 	}
 	}
-	running = false
+
 	return nil
 	return nil
 }
 }