From df1526f9feaf92a49a93695559d0c3ec658b9382 Mon Sep 17 00:00:00 2001 From: gbChoi Date: Fri, 28 Jul 2017 16:48:07 +0900 Subject: [PATCH] Update scanner.js --- lib/scanner.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/scanner.js b/lib/scanner.js index 3c06a28..675636a 100644 --- a/lib/scanner.js +++ b/lib/scanner.js @@ -31,9 +31,13 @@ util.inherits(Scanner, Readable); Scanner.prototype.init = function(callback) { var encode, encoding, key, params; params = {}; - if (params.batch == null) { - params.batch = 1000; - } + + // if (params.batch == null) { + // params.batch = 1000; + // } + + params.batch = !!( this.options.batch ) ? this.options.batch : 1000; + key = "/" + this.options.table + "/scanner"; encoding = this.options.encoding === 'undefined' ? this.options.encoding : this.client.options.encoding; if (this.options.startRow) {