Skip to content

Commit

Permalink
Update services/horizon/internal/ingest/parallel.go
Browse files Browse the repository at this point in the history
Co-authored-by: Bartek Nowotarski <[email protected]>
  • Loading branch information
tamirms and bartekn authored Nov 9, 2021
1 parent e2d8c1c commit b02ecdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/horizon/internal/ingest/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func calculateParallelLedgerBatchSize(rangeSize uint32, batchSizeSuggestion uint
func totalRangeSize(ledgerRanges [][2]uint32) uint32 {
var sum uint32
for _, pair := range ledgerRanges {
sum += pair[1] - pair[0]
sum += pair[1] - pair[0] + 1
}
return sum
}
Expand Down

0 comments on commit b02ecdb

Please sign in to comment.