|
|
|
@ -37,11 +37,11 @@ couchmagick.get({
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// defaults
|
|
|
|
|
config.streams = config.streams || 20;
|
|
|
|
|
config.concurrency = config.concurrency || 1;
|
|
|
|
|
config.limit = config.limit || 100;
|
|
|
|
|
config.changes_feed_timeout = config.changes_feed_timeout || 60000;
|
|
|
|
|
config.convert_process_timeout = config.convert_process_timeout || 60000;
|
|
|
|
|
config.concurrency = config.concurrency && parseInt(config.concurrency, 10) || 1;
|
|
|
|
|
config.streams = config.streams && parseInt(config.streams, 10) || 1;
|
|
|
|
|
config.limit = config.limit && parseInt(config.limit, 100) || 0;
|
|
|
|
|
config.changes_feed_timeout = config.changes_feed_timeout && parseInt(config.changes_feed_timeout, 10) || 10000;
|
|
|
|
|
config.convert_process_timeout = config.convert_process_timeout && parseInt(config.convert_process_timeout, 10) || 60000;
|
|
|
|
|
|
|
|
|
|
couchmagick.info('using config ' + JSON.stringify(config).replace(/"password":".*?"/, '"password":"***"'));
|
|
|
|
|
|
|
|
|
|