Skip to content

Commit e73c90c

Browse files
committed
adjust limits
1 parent 2912fcb commit e73c90c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

svc/retriever.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ const matchAttempts = new Map<string, number>();
1515
const failedLogin = new Map<string, string>();
1616

1717
const numAccounts = Number(config.RETRIEVER_NUM_ACCOUNTS);
18-
const matchesPerAccount = 100;
19-
const accountAttemptMax = 10;
20-
const matchRequestInterval = Math.max(1000 / numAccounts, 500);
18+
const matchesPerAccount = 200;
19+
const matchRequestInterval = Math.max(1000 / numAccounts, 250);
2120
const port = config.PORT || config.RETRIEVER_PORT;
2221
const noneReady = () => clientMap.size === 0;
2322
let lastMatchRequestTime: number | null = null;

svc/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ app.get("/retrieverData", async (req, res, next) => {
290290
// const ratio = success / reqs;
291291
// const isLowRatio = reqs > 25 && ratio <= 0;
292292
// Don't add high usage logons or high fail logons
293-
if (reqs < 100) {
293+
if (reqs < 200) {
294294
await redis.sadd("retrieverDataSet", line);
295295
}
296296
}

0 commit comments

Comments
 (0)