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

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