Просмотр исходного кода

replace peer on first peer update

abhishek9686 1 год назад
Родитель
Сommit
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():