浏览代码

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():