Преглед изворни кода

replace peer on first peer update

abhishek9686 пре 1 година
родитељ
комит
72577a96d9
1 измењених фајлова са 1 додато и 1 уклоњено
  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():