load user pins in the database worker

This commit is contained in:
ansuz
2020-03-25 11:39:14 -04:00
parent 50e8893b24
commit 4ba36a9173
4 changed files with 58 additions and 28 deletions

View File

@@ -42,6 +42,7 @@ module.exports.create = function (config, cb) {
batchMetadata: BatchRead('GET_METADATA'),
batchRegisteredUsers: BatchRead("GET_REGISTERED_USERS"),
batchDiskUsage: BatchRead('GET_DISK_USAGE'),
batchUserPins: BatchRead('LOAD_USER_PINS'),
//historyKeeper: config.historyKeeper,
intervals: config.intervals || {},
@@ -242,6 +243,7 @@ module.exports.create = function (config, cb) {
}));
}).nThen(function (w) {
HK.initializeIndexWorkers(Env, {
pinPath: pinPath,
filePath: config.filePath,
archivePath: config.archivePath,
channelExpirationMs: config.channelExpirationMs,