소스 검색

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