Skip to content

Commit

Permalink
fix: cache pings for more invasion,item combinations. potential fix for
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 11, 2021
1 parent 99d0852 commit f63f78b
Show file tree
Hide file tree
Showing 2 changed files with 646 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/notifications/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const cachedEvents = require('../resources/cachedEvents');
const activePlatforms = (process.env.PLATFORMS || 'pc').split(',');

const rest = new Rest();
/** @type {Database} */
const db = new Database();

const deps = {};
Expand Down Expand Up @@ -48,7 +49,6 @@ class Worker {
}
}

/* eslint-disable-next-line class-methods-use-this */
async hydratePings() {
const sDate = Date.now();
const pings = await db.getAllPings();
Expand All @@ -73,7 +73,6 @@ class Worker {
await this.hydratePings();
}

/* eslint-disable-next-line class-methods-use-this */
async hydrateQueries() {
const sDate = Date.now();
for (const cachedEvent of cachedEvents) {
Expand Down
Loading

0 comments on commit f63f78b

Please sign in to comment.