From 771c8681fbd09882db5f55ff963c3c31ad443620 Mon Sep 17 00:00:00 2001 From: HF Date: Wed, 7 Sep 2022 20:19:16 +0200 Subject: [PATCH] adjust timeouts --- src/core/draw.js | 2 +- src/routes/chunks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/draw.js b/src/core/draw.js index 51ddb17..ce65e59 100644 --- a/src/core/draw.js +++ b/src/core/draw.js @@ -206,7 +206,7 @@ export async function drawByOffsets( } const duration = Date.now() - startTime; - if (duration > 3000) { + if (duration > 5000) { logger.warn( // eslint-disable-next-line max-len `Long response time of ${duration}ms for placing ${pxlCnt} pixels for user ${user.id || user.ip}`, diff --git a/src/routes/chunks.js b/src/routes/chunks.js index 3f2ea6d..40b35b3 100644 --- a/src/routes/chunks.js +++ b/src/routes/chunks.js @@ -55,7 +55,7 @@ export default async (req, res, next) => { const stime = Date.now(); chunk = await RedisCanvas.getChunk(c, x, y); const dur = Date.now() - stime; - if (dur > 3000) { + if (dur > 6000) { // eslint-disable-next-line max-len logger.warn(`Long redis response times of ${dur}ms for chunk ${c}:${x},${y}`); }