Skip to content

Commit c2cfb2a

Browse files
feat: broadcast floodsub message when there no peers
1 parent 8546a9a commit c2cfb2a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rolling-shutter/p2p/floodsubpeerdiscovery/gossippeerdiscovery.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ func (pd *FloodsubPeerDiscovery) broadcast() error {
104104
}
105105

106106
for _, topic := range pd.Topics {
107-
if len(pd.Pubsub.ListPeers(topic.String())) == 0 {
108-
log.Info().Msgf("skipping broadcasting our peer data on topic %s because there are no peers present", topic)
109-
continue
110-
}
111107
log.Info().Msgf("broadcasting our peer data on topic %s", topic)
112108

113109
if err := topic.Publish(context.Background(), pbPeer); err != nil {

0 commit comments

Comments
 (0)