ok
This commit is contained in:
parent
c2070693fb
commit
909e241907
55 changed files with 594 additions and 223 deletions
|
|
@ -23,7 +23,7 @@ class RateLimiter:
|
|||
Detail-page fetches run concurrently across many worker threads (and across
|
||||
providers), but a single shared limiter caps their COMBINED rate so the VPN
|
||||
egress IP stays polite. Each ``acquire()`` reserves the next free time slot
|
||||
under a lock, then sleeps (outside the lock) until that slot — so N threads
|
||||
under a lock, then sleeps (outside the lock) until that slot, so N threads
|
||||
calling concurrently are spaced ``1/rate_per_second`` apart rather than all
|
||||
firing at once. ``rate_per_second <= 0`` disables limiting."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue