From 7d5dd5e5f9991723c62cfed6f2d781865d2f517f Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Wed, 10 Jan 2024 18:35:06 +0100 Subject: [PATCH] add comment --- src/libs/HttpUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/HttpUtils.ts b/src/libs/HttpUtils.ts index 58c126518188..22e342ac847b 100644 --- a/src/libs/HttpUtils.ts +++ b/src/libs/HttpUtils.ts @@ -49,6 +49,7 @@ function processHTTPRequest(url: string, method: RequestType = 'get', body: Form body, }) .then((response) => { + // We are calculating the skew to minimize the delay when posting the messages const match = url.match(APICommandRegex)?.[1]; if (match && addSkewList.includes(match) && response.headers) { const dateHeaderValue = response.headers.get('Date');