replace peer on first peer update

This commit is contained in:
abhishek9686 2024-05-17 12:02:47 +05:30
parent 450d7d4766
commit 72577a96d9

View file

@ -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():