diff options
author | Diego Rodriguez Baquero <diego@protocol.ai> | 2022-04-22 13:38:33 +0300 |
---|---|---|
committer | Diego Rodriguez Baquero <diego@protocol.ai> | 2022-04-22 13:38:33 +0300 |
commit | 61a4bbba303e869cbb07361526e4f1c59752ecc4 (patch) | |
tree | 41d62c79d8fe3148b9bc26a8d299f81c1ca09a88 /lib/torrent.js | |
parent | 558eec771a284c500dc864c0893ebb62c0943131 (diff) |
chore: standard 17
Diffstat (limited to 'lib/torrent.js')
-rw-r--r-- | lib/torrent.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 7c49e6e..51c0552 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -1643,9 +1643,9 @@ class Torrent extends EventEmitter { const maxOutstandingRequests = isWebSeed ? Math.min( - getPiecePipelineLength(wire, PIPELINE_MAX_DURATION, self.pieceLength), - self.maxWebConns - ) + getPiecePipelineLength(wire, PIPELINE_MAX_DURATION, self.pieceLength), + self.maxWebConns + ) : getBlockPipelineLength(wire, PIPELINE_MAX_DURATION) if (numRequests >= maxOutstandingRequests) return false |