Navigation Menu

Skip to content

Commit

Permalink
Use batch processor correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 5b222b1 commit 66028cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/gcs-post-sdf
Expand Up @@ -3,6 +3,7 @@
var CLI = require(__dirname + '/../lib/command-line').CommandLineInterface;
var commandLine = new CLI();
var fs = require('fs');
var BatchProcessor = require(__dirname + '/../lib/batch').Processor;

commandLine
.usage('--source <path to SDF file> [options]')
Expand Down Expand Up @@ -55,7 +56,7 @@ try {
return process.exit(1);
}

processor.load(batches);
processor.load(batches)
.next(function(result) {
console.log('Status: %s', result.status);
console.log('Added: %s', result.adds);
Expand Down

0 comments on commit 66028cd

Please sign in to comment.