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:
authorFeross Aboukhadijeh <feross@feross.org>2016-04-21 12:14:51 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-04-21 12:14:51 +0300
commit1d51b5b428b791f4766c1d3cb49b5bc457a00656 (patch)
tree96f4982af1b51d297077253fcea5fb81f4db4f9c /index.js
parent0a22dc73c15eb9e74a3c0c13f570a76516e41799 (diff)
use simple-concat
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index 60347cc..ff69201 100644
--- a/index.js
+++ b/index.js
@@ -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) {