Browse Source

send peer update on startup

abhishek9686 1 year ago
parent
commit
3ed183344b
1 changed files with 1 additions and 0 deletions
  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():