Explorar o código

replace peer on first peer update

abhishek9686 hai 1 ano
pai
achega
72577a96d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mq/mq.go

+ 1 - 1
mq/mq.go

@@ -129,7 +129,7 @@ func SetupMQTT(fatal bool) {
 
 // Keepalive -- periodically pings all nodes to let them know server is still alive and doing well
 func Keepalive(ctx context.Context) {
-	go PublishPeerUpdate(false)
+	go PublishPeerUpdate(true)
 	for {
 		select {
 		case <-ctx.Done():