From da61aaf3df6653e146dab85a60598d86b61ca4e9 Mon Sep 17 00:00:00 2001 From: Dan Motzenbecker Date: Sat, 10 Feb 2024 12:19:02 -0500 Subject: [PATCH] removed extraneous function from torrent strategy --- src/torrent.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/torrent.js b/src/torrent.js index d85f968..034e400 100644 --- a/src/torrent.js +++ b/src/torrent.js @@ -75,8 +75,6 @@ export const joinRoom = initGuard(occupiedRooms, (config, ns) => { }) ) - const makeOfferPool = () => makeOffers(offerPoolSize) - const onSocketMessage = async (socket, e) => { const infoHash = await infoHashP let val @@ -237,7 +235,7 @@ export const joinRoom = initGuard(occupiedRooms, (config, ns) => { cleanPool() } - offerPool = makeOfferPool() + offerPool = makeOffers(offerPoolSize) trackerUrls.forEach(async url => { const socket = await makeSocket(url, infoHash)