Skip to content

Commit

Permalink
removed extraneous function from torrent strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed Feb 10, 2024
1 parent fd2bc2e commit da61aaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/torrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit da61aaf

Please sign in to comment.