Skip to content

Commit

Permalink
inline benchmarks processing to avoid buildMatch calls
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 4, 2023
1 parent 601b291 commit 73bf0b4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 60 deletions.
8 changes: 0 additions & 8 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,6 @@
"exec_mode": "cluster",
"instances": 1
},
{
"script": "svc/benchmarks.mjs",
"watch": true,
"ignore_watch": [".git", "node_modules"],
"group": "backend",
"exec_mode": "cluster",
"instances": 1
},
{
"script": "svc/syncSubs.mjs",
"watch": true,
Expand Down
52 changes: 0 additions & 52 deletions svc/benchmarks.mjs

This file was deleted.

2 changes: 2 additions & 0 deletions svc/scenarios.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import db from '../store/db.mjs';
import utility from '../util/utility.mjs';
import su from '../util/scenariosUtil.mjs';
async function processScenarios(matchID, cb) {
console.log('[SCENARIOS] match: %s', matchID);
try {
// Using buildMatch is unnecessarily expensive here since it also looks up player names etc.
const match = await buildMatch(matchID);
if (!su.validateMatchProperties(match)) {
console.error(
Expand Down

0 comments on commit 73bf0b4

Please sign in to comment.