adjust timeouts
This commit is contained in:
parent
105b7ab76d
commit
771c8681fb
|
@ -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}`,
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user