Преглед на файлове

Merge pull request #2941 from gravitl/NET-1255

NET-1255: Send peer update on startup
Abhishek K преди 1 година
родител
ревизия
09d7001fa5
променени са 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(true)
 	for {
 		select {
 		case <-ctx.Done():