Переглянути джерело

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