Skip to content

Commit

Permalink
setting highWaterMark to 0 since the driver buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Aug 24, 2013
1 parent cd0d397 commit f36fc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var getCallback = function(args) {
// arguments to fit the mongo shell.

var Cursor = function(oncursor) {
Readable.call(this, {objectMode:true});
Readable.call(this, {objectMode:true, highWaterMark:0});
this._get = oncursor;
};

Expand Down

0 comments on commit f36fc8f

Please sign in to comment.