Skip to content

Commit 0426085

Browse files
committed
Return on error while subscribing
1 parent 95dadaf commit 0426085

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gossipsub.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ func (gs *GossipSubRouter) manageAddrBook() {
536536
})
537537
if err != nil {
538538
log.Errorf("failed to subscribe to peer identification events: %v", err)
539+
return
539540
}
540541
defer sub.Close()
541542

0 commit comments

Comments
 (0)