diff --git a/lib/zxystream.js b/lib/zxystream.js index 654c2e5..56b7d5f 100644 --- a/lib/zxystream.js +++ b/lib/zxystream.js @@ -9,7 +9,7 @@ util.inherits(ZXYStream, stream.Readable); // // The `batch` option exists to allow tests to check that // multiple calls to `_read` are handled properly. IRL the -// default offset of 10000 should be reasonably efficient +// default offset of 1000 should be reasonably efficient // and not worth messing with. function ZXYStream(source, options) { if (!source) throw new TypeError('MBTiles source required'); @@ -20,7 +20,7 @@ function ZXYStream(source, options) { throw new TypeError('options.batch must be a positive integer'); this.source = source; - this.batch = options.batch || 10000; + this.batch = options.batch || 1000; this.offset = 0; stream.Readable.call(this); diff --git a/test/zxystream.js b/test/zxystream.js index 9eee913..b9c34cf 100644 --- a/test/zxystream.js +++ b/test/zxystream.js @@ -16,7 +16,7 @@ tape('zxystream default batch', function(assert) { var called = 0; assert.deepEqual(stream.source, source, 'sets stream.source'); - assert.deepEqual(stream.batch, 10000, 'sets stream.batch = 10000'); + assert.deepEqual(stream.batch, 1000, 'sets stream.batch = 1000'); assert.deepEqual(stream.offset, 0, 'sets stream.offset = 0'); stream.on('data', function(lines) {