Skip to content

Commit

Permalink
Merge "[FAB-4613] Warning logs flooding in orderer and peers"
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rWin authored and Gerrit Code Review committed Jun 15, 2017
2 parents f234e7d + a114cd5 commit 4dc0370
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/deliverservice/blocksprovider/blocksprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ func (b *blocksProviderImpl) DeliverBlocks() {
maxDelay := float64(maxRetryDelay)
currDelay := float64(time.Duration(math.Pow(2, float64(statusCounter))) * 100 * time.Millisecond)
time.Sleep(time.Duration(math.Min(maxDelay, currDelay)))
statusCounter++
if currDelay < maxDelay {
statusCounter++
}
b.client.Disconnect()
continue
case *orderer.DeliverResponse_Block:
Expand Down

0 comments on commit 4dc0370

Please sign in to comment.