Skip to content

Commit

Permalink
Merge "[FAB-2689] Limit conn attempts to bootstrap peers"
Browse files Browse the repository at this point in the history
  • Loading branch information
hacera-jonathan authored and Gerrit Code Review committed Mar 8, 2017
2 parents babdeee + fda3064 commit f27a039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/discovery/discovery_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (d *gossipDiscoveryImpl) connect2BootstrapPeers(endpoints []string) {
return
}

for !d.somePeerIsKnown() {
for i := 0; i < maxConnectionAttempts && !d.somePeerIsKnown() && !d.toDie(); i++ {
var wg sync.WaitGroup
req := d.createMembershipRequest(true).NoopSign()
wg.Add(len(endpoints))
Expand Down

0 comments on commit f27a039

Please sign in to comment.