diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-04-21 12:14:51 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-04-21 12:14:51 +0300 |
commit | 1d51b5b428b791f4766c1d3cb49b5bc457a00656 (patch) | |
tree | 96f4982af1b51d297077253fcea5fb81f4db4f9c /index.js | |
parent | 0a22dc73c15eb9e74a3c0c13f570a76516e41799 (diff) |
use simple-concat
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,6 @@ module.exports = WebTorrent +var concat = require('simple-concat') var createTorrent = require('create-torrent') var debug = require('debug')('webtorrent') var DHT = require('bittorrent-dht/client') // browser exclude @@ -15,7 +16,6 @@ var Peer = require('simple-peer') var speedometer = require('speedometer') var zeroFill = require('zero-fill') -var concatStream = require('./lib/concat-stream') var TCPPool = require('./lib/tcp-pool') // browser exclude var Torrent = require('./lib/torrent') @@ -274,7 +274,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) { if (!Array.isArray(input)) input = [ input ] parallel(input.map(function (item) { return function (cb) { - if (isReadable(item)) concatStream(item, cb) + if (isReadable(item)) concat(item, cb) else cb(null, item) } }), function (err, input) { |