Skip to content

Commit

Permalink
removed unused variable in ChunkDownloader
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Nov 18, 2023
1 parent e0f9ea9 commit 4ab3346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Downloader/ChunkDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public async Task<Chunk> Download(Request downloadRequest, PauseToken pause, Can
{
return await ContinueWithDelay(downloadRequest, pause, cancelToken).ConfigureAwait(false);
}
catch(Exception error)
catch(Exception)
{
// Can't handle this exception
throw;
Expand Down
4 changes: 2 additions & 2 deletions src/Samples/Downloader.Sample/Program.Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ private static DownloadConfiguration GetDownloadConfiguration()

return new DownloadConfiguration {
BufferBlockSize = 10240, // usually, hosts support max to 8000 bytes, default values is 8000
ChunkCount = 4, // file parts to download, default value is 1
ChunkCount = 8, // file parts to download, default value is 1
MaximumBytesPerSecond = 0, // download speed limited to 10MB/s, default values is zero or unlimited
MaxTryAgainOnFailover = 5, // the maximum number of times to fail
MaximumMemoryBufferBytes = 1024 * 1024 * 1024, // release memory buffer after each 1GB
ParallelDownload = true, // download parts of file as parallel or not. Default value is false
ParallelCount = 4, // number of parallel downloads. The default value is the same as the chunk count
ParallelCount = 8, // number of parallel downloads. The default value is the same as the chunk count
Timeout = 3000, // timeout (millisecond) per stream block reader, default value is 1000
RangeDownload = false, // set true if you want to download just a specific range of bytes of a large file
RangeLow = 0, // floor offset of download range of a large file
Expand Down

0 comments on commit 4ab3346

Please sign in to comment.