Skip to content

Commit

Permalink
FIX: bug in rate limiting causing higher than intended rates
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Jul 25, 2024
1 parent fffdf45 commit 9763d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fastf1/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def limit(self):
t_now = time.time()
if (delta := (t_now - self._t_last)) < self._interval:
time.sleep(self._interval - delta)
t_now += self._interval - delta
self._t_last = t_now


Expand Down

0 comments on commit 9763d1a

Please sign in to comment.