Skip to content

Commit

Permalink
Return on error while subscribing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed May 20, 2024
1 parent 95dadaf commit 0426085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gossipsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ func (gs *GossipSubRouter) manageAddrBook() {
})
if err != nil {
log.Errorf("failed to subscribe to peer identification events: %v", err)
return
}
defer sub.Close()

Expand Down

0 comments on commit 0426085

Please sign in to comment.