Skip to content

Commit

Permalink
fix(ref-imp): fixed run time crashing of Core due to previous mongodb…
Browse files Browse the repository at this point in the history
… logging commit
  • Loading branch information
thehenrytsai authored Oct 7, 2021
1 parent a357828 commit 5c0c7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/VersionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export default class VersionManager implements IVersionManager, IVersionMetadata
const version = versionModel.version;

const MongoDbOperationQueue = await this.loadDefaultExportsForVersion(version, 'MongoDbOperationQueue');
const operationQueue = new MongoDbOperationQueue();
await operationQueue.initialize(this.config.mongoDbConnectionString, this.config.databaseName);
const operationQueue = new MongoDbOperationQueue(this.config.mongoDbConnectionString, this.config.databaseName);
await operationQueue.initialize();

const TransactionProcessor = await this.loadDefaultExportsForVersion(version, 'TransactionProcessor');
const transactionProcessor = new TransactionProcessor(downloadManager, operationStore, blockchain, this);
Expand Down

0 comments on commit 5c0c7f9

Please sign in to comment.