Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdimarco committed Jun 3, 2015
1 parent c659cb9 commit cf76b44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/upload.js
Expand Up @@ -53,15 +53,15 @@ module.exports = {
});

zipStream.on('end', function() {
var ThrottledBufferStream = function(buffers, options) {
var BufferStream = function(buffers, options) {
this.buffers = buffers.reverse();

stream.Readable.call(this, options);
};

util.inherits(ThrottledBufferStream, stream.Readable);
util.inherits(BufferStream, stream.Readable);

ThrottledBufferStream.prototype._read = function() {
BufferStream.prototype._read = function() {
// Populating this stream requires no I/O, given that all of the required data to stream is
// already in memory. Due to a bug affecting Node v0.10 through v0.11.0, this synchronous
// streaming has the potential to block the event loop and lead to a recursive nextTick()
Expand All @@ -80,7 +80,7 @@ module.exports = {
}, 0);
};

var bufferStream = new ThrottledBufferStream(buffers);
var bufferStream = new BufferStream(buffers);

if (fileCount === 0) {
console.log(chalk.yellow('Public Directory Warning') + ' - Public ' +
Expand Down

0 comments on commit cf76b44

Please sign in to comment.