send peer update on startup

This commit is contained in:
abhishek9686 2024-05-17 11:28:53 +05:30
parent 0e167e521c
commit 3ed183344b

View file

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