Skip to content

Commit

Permalink
Merge pull request #514 from Peergos/opt/parallel-chunk-downloads
Browse files Browse the repository at this point in the history
Enable parallel chunk downloads for downloading a file, and buffering videos
  • Loading branch information
ianopolous authored Aug 1, 2023
2 parents 52c99dc + 6baee85 commit 73f74ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mixins/downloader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ module.exports = {
} , { icon: false , timeout:false, id: filename})
// var context = this.getContext()
file
.getInputStream(
.getBufferedInputStream(
this.context.network,
this.context.crypto,
props.sizeHigh(),
props.sizeLow(),
props.sizeLow(),
20,
function (read) {
progress.done += read.value_0
if (progress.done >= progress.max) {
Expand Down

0 comments on commit 73f74ee

Please sign in to comment.