Работа над RemoteLib

This commit is contained in:
Book Pauk
2022-10-07 17:59:34 +07:00
parent 8bec2275ae
commit e6dfe4d221
7 changed files with 155 additions and 66 deletions

View File

@@ -5,11 +5,12 @@ const zlib = require('zlib');
const _ = require('lodash');
const ZipReader = require('./ZipReader');
const WorkerState = require('./WorkerState');
const WorkerState = require('./WorkerState');//singleton
const { JembaDbThread } = require('jembadb');
const DbCreator = require('./DbCreator');
const DbSearcher = require('./DbSearcher');
const InpxHashCreator = require('./InpxHashCreator');
const RemoteLib = require('./RemoteLib');//singleton
const ayncExit = new (require('./AsyncExit'))();
const log = new (require('./AppLogger'))().log;//singleton
@@ -505,6 +506,11 @@ class WebWorker {
while (this.myState != ssNormal)
await utils.sleep(1000);
if (this.config.remoteLib) {
const remoteLib = new RemoteLib(this.config);
await remoteLib.getInpxFile(60*1000);
}
const newInpxHash = await inpxHashCreator.getHash();
const dbConfig = await this.dbConfig();