Răsfoiți Sursa

send peer update on startup

abhishek9686 1 an în urmă
părinte
comite
3ed183344b
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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():