From df2237870a99fd6e3c1a174885d93e0ab4f63a00 Mon Sep 17 00:00:00 2001 From: Fabian Haas <29468630+hfxbse@users.noreply.github.com> Date: Sat, 4 May 2024 15:33:06 +0200 Subject: [PATCH] fix use of wrong delay limits on batches --- src/instagram/follower.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instagram/follower.ts b/src/instagram/follower.ts index ab11254..87dc7dd 100644 --- a/src/instagram/follower.ts +++ b/src/instagram/follower.ts @@ -62,7 +62,7 @@ async function rateLimiter({graph, user, phase, taskCount, limits, controller}: await delay.delay return 0 } else { - const delay = randomDelay(limits.rate.delay.daily) + const delay = randomDelay(limits.rate.delay.batches) controller.enqueue({ type: FollowerFetcherEventTypes.RATE_LIMIT_BATCH, user: user,