diff options
Diffstat (limited to 'lib/rarity-map.js')
-rw-r--r-- | lib/rarity-map.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rarity-map.js b/lib/rarity-map.js index af712cc..41fc2ed 100644 --- a/lib/rarity-map.js +++ b/lib/rarity-map.js @@ -3,7 +3,7 @@ * Mapping of torrent pieces to their respective availability in the torrent swarm. Used * by the torrent manager for implementing the rarest piece first selection strategy. */ -class RarityMap { +export default class RarityMap { constructor (torrent) { this._torrent = torrent this._numPieces = torrent.pieces.length @@ -104,5 +104,3 @@ class RarityMap { wire._onClose = null } } - -module.exports = RarityMap |