Skip to content

Commit

Permalink
Merge pull request #33 from bancorprotocol/bugfix/rate_limiter
Browse files Browse the repository at this point in the history
bugfix closes #32
  • Loading branch information
mikewcasale authored Jul 27, 2023
2 parents b6b18e7 + c38feb5 commit 0b4307e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastlane_bot/events/managers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b4307e

Please sign in to comment.