mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
replace peer on first peer update
This commit is contained in:
parent
450d7d4766
commit
72577a96d9
1 changed files with 1 additions and 1 deletions
2
mq/mq.go
2
mq/mq.go
|
@ -129,7 +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)
|
||||
go PublishPeerUpdate(true)
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
|
Loading…
Add table
Reference in a new issue