diff options
author | KayleePop <34007889+KayleePop@users.noreply.github.com> | 2018-08-26 22:28:27 +0300 |
---|---|---|
committer | KayleePop <34007889+KayleePop@users.noreply.github.com> | 2018-08-27 21:45:26 +0300 |
commit | 124fc9fe680f9d13e38b48b5d4ae8cfc3fce0a2a (patch) | |
tree | 579797242d530e797c055369cdf025b6b466176b /lib | |
parent | 6a4beb5f8db076212af1e52904eb7b1102f1b903 (diff) |
Pass a torrent's infohash to custom chunk stores as the `name` option
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 5f86228..0229e32 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -459,7 +459,8 @@ class Torrent extends EventEmitter { length: file.length, offset: file.offset })), - length: this.length + length: this.length, + name: this.infoHash }) ) |