Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Jul 2, 2024
1 parent b6a4db3 commit bf874aa
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ private void httpDownload(ResourceToDownload resource, Path tmpPath)
record Range(long start, long end) {}
List<Range> chunks = new ArrayList<>();
boolean ranges = metadata.acceptRange && config.downloadThreads() > 1;
boolean supportsRange = ranges && metadata.size.isPresent();
long fileSize = metadata.size.orElse(Long.MAX_VALUE);
long chunkSize = ranges ? chunkSizeBytes : fileSize;
for (long start = 0; start < fileSize; start += chunkSize) {
Expand Down

0 comments on commit bf874aa

Please sign in to comment.