From 44c7a4c39d10e44a273b4370a77edef1acdc5fcd Mon Sep 17 00:00:00 2001 From: mikewcasale Date: Wed, 26 Jul 2023 07:28:59 -0700 Subject: [PATCH] Fixes an issue caused by an Alchemy API key rate limit --- fastlane_bot/events/managers/manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastlane_bot/events/managers/manager.py b/fastlane_bot/events/managers/manager.py index 2bce1888f..de45fd46c 100644 --- a/fastlane_bot/events/managers/manager.py +++ b/fastlane_bot/events/managers/manager.py @@ -188,6 +188,8 @@ def update( if limiter: rate_limiter = 0.1 + 0.9 * random.random() time.sleep(rate_limiter) + else: + rate_limiter = 0 try: if event: self.update_from_event(event=event, block_number=block_number)