Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Rodriguez Baquero <diego@protocol.ai>2022-04-22 13:38:33 +0300
committerDiego Rodriguez Baquero <diego@protocol.ai>2022-04-22 13:38:33 +0300
commit61a4bbba303e869cbb07361526e4f1c59752ecc4 (patch)
tree41d62c79d8fe3148b9bc26a8d299f81c1ca09a88
parent558eec771a284c500dc864c0893ebb62c0943131 (diff)
chore: standard 17
-rw-r--r--lib/torrent.js6
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