From 5653b3678a51ad1027eef342e9967b268f005eb6 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Thu, 31 Dec 2020 13:16:01 +0100 Subject: [PATCH] fix: typo in maxDelay error message --- src/rateLimit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rateLimit.ts b/src/rateLimit.ts index 73ada4e..9e9bc15 100644 --- a/src/rateLimit.ts +++ b/src/rateLimit.ts @@ -32,7 +32,7 @@ export function pRateLimit( if (quotaManager.maxDelay) { timerId = setTimeout(() => { timerId = null; - reject(new RateLimitTimeoutError('queue maxDelay timemout exceeded')); + reject(new RateLimitTimeoutError('queue maxDelay timeout exceeded')); next(); }, quotaManager.maxDelay); }