Skip to content

Bulk asynchronous downloader for multiple file hosts

fix issue with leaky bucket class

datawhores8013da397e9b
diff --git a/cyberdrop_dl/managers/leaky.py b/cyberdrop_dl/managers/leaky.py
index af61e8c58..2b072e71e 100644
--- a/cyberdrop_dl/managers/leaky.py
+++ b/cyberdrop_dl/managers/leaky.py
@@ -3,7 +3,7 @@ from aiolimiter import AsyncLimiter
class LeakyBucket( AsyncLimiter):
def __init__(self,manager):
self.download_speed_limit = manager.config_manager.global_settings_data['Rate_Limiting_Options']['download_speed_limit']
- super().__init__(self.download_speed_limit*1024,rate=1)
+ super().__init__(self.download_speed_limit*1024,1)
async def acquire(self, amount: float = 1):
if self.download_speed_limit<=0:
return