adjust timeouts

This commit is contained in:
HF 2022-09-07 20:19:16 +02:00
parent 105b7ab76d
commit 771c8681fb
2 changed files with 2 additions and 2 deletions

View File

@ -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}`,

View File

@ -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}`);
}