Explorar el Código

Merge pull request #2941 from gravitl/NET-1255

NET-1255: Send peer update on startup
Abhishek K hace 1 año
padre
commit
09d7001fa5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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():