We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283902e commit 49a13bbCopy full SHA for 49a13bb
examples/src/main/scala/varys/examples/BroadcastService.scala
@@ -345,7 +345,7 @@ private[varys] object BroadcastReceiver extends Logging {
345
346
// Create a random order of blocks (Array[(offset, blockSize)])
347
val allOffsets = new ArrayBuffer[(Int, Int)]
348
- for (fromBytes <- 0L to bInfo.LEN_BYTES by BroadcastUtils.BLOCK_SIZE) {
+ for (fromBytes <- 0L until bInfo.LEN_BYTES by BroadcastUtils.BLOCK_SIZE) {
349
val blockSize = if (fromBytes + BroadcastUtils.BLOCK_SIZE >= bInfo.LEN_BYTES) {
350
bInfo.LEN_BYTES - fromBytes
351
} else {
0 commit comments