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:
Diffstat (limited to 'lib/rarity-map.js')
-rw-r--r--lib/rarity-map.js4
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