From 61a4bbba303e869cbb07361526e4f1c59752ecc4 Mon Sep 17 00:00:00 2001 From: Diego Rodriguez Baquero Date: Fri, 22 Apr 2022 12:38:33 +0200 Subject: chore: standard 17 --- lib/torrent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3