Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: searcher gossip addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Oct 5, 2023
1 parent 3c20b99 commit 67d7fce
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkg/topology/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,11 @@ func (t *topology) Connected(p p2p.Peer) {
})
}

if len(underlays) == 0 {
t.logger.Warn("no underlays to broadcast", "peer", p)
return
}
err := t.announcer.BroadcastPeers(context.Background(), p, underlays)
if err != nil {
t.logger.Error("failed to broadcast peers", "err", err, "peer", p)
if len(underlays) > 0 {
err := t.announcer.BroadcastPeers(context.Background(), p, underlays)
if err != nil {
t.logger.Error("failed to broadcast peers", "err", err, "peer", p)
}
}

if p.Type == p2p.PeerTypeBuilder {
Expand Down

0 comments on commit 67d7fce

Please sign in to comment.