compute metadata in the same child process that builds indexes

This commit is contained in:
ansuz
2020-03-24 17:43:15 -04:00
parent 479b76f848
commit 471e374533
4 changed files with 95 additions and 54 deletions

View File

@@ -247,11 +247,10 @@ module.exports.create = function (config, cb) {
channelExpirationMs: config.channelExpirationMs,
verbose: config.verbose,
openFileLimit: config.openFileLimit,
}, w(function (err, computeIndex) {
}, w(function (err) {
if (err) {
throw new Error(err);
}
Env.computeIndex = computeIndex;
}));
}).nThen(function (w) {
// create a task store