ソースを参照

send peer update on startup

abhishek9686 1 年間 前
コミット
3ed183344b
1 ファイル変更1 行追加0 行削除
  1. 1 0
      mq/mq.go

+ 1 - 0
mq/mq.go

@@ -129,6 +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)
 	for {
 		select {
 		case <-ctx.Done():