Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for progress on write #1788

Open
wants to merge 3 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

more bot appeasements

  • Loading branch information
ftreesmilo committed Dec 10, 2019
commit e90dfaabe1dd499fd31d2a58b17bef0d6af9725d
@@ -113,7 +113,7 @@ class Torrent extends EventEmitter {
// for cleanup
this._servers = []
this._xsRequests = []

this._writeCb = opts.writeCb

// TODO: remove this and expose a hook instead
@@ -1599,7 +1599,7 @@ class Torrent extends EventEmitter {
if (!cb) cb = noop

const readable = new MultiStream(streams)
let read = 0;
let read = 0
const writable = new ChunkStoreWriteStream(this.store, this.pieceLength)
if (this._writeCb) {
writable._blockstream.on('data', data => {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.