From e49db4583c68dae165badc193fec5cd8bfccee18 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:13:06 +0200 Subject: [PATCH] fix: remove body for play checker (#968) --- apps/web/src/components/ping-response-analysis/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ping-response-analysis/utils.ts b/apps/web/src/components/ping-response-analysis/utils.ts index 67fdd40e1..c687b50ea 100644 --- a/apps/web/src/components/ping-response-analysis/utils.ts +++ b/apps/web/src/components/ping-response-analysis/utils.ts @@ -167,17 +167,21 @@ export async function checkRegion( }; } +/** + * Used for the /play/checker page only + */ export async function checkAllRegions(url: string, opts?: { method: Method }) { // TODO: settleAll return await Promise.all( flyRegions.map(async (region) => { const check = await checkRegion(url, region, opts); + // REMINDER: dropping the body to avoid storing it within Redis Cache (Err max request size exceeded) + check.body = undefined; return check; }), ); } -// TODO: add opts: { method: Method } export async function setCheckerData(url: string, opts?: { method: Method }) { const redis = Redis.fromEnv(); const time = new Date().getTime(); -- 2.51.2