mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 01:21:32 +00:00
Remove obsolete TODO
This commit is contained in:
parent
1d47ca5684
commit
5213152477
@ -47,7 +47,7 @@ class RateLimiter:
|
|||||||
fun(*args, **kwargs)
|
fun(*args, **kwargs)
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
def _limit_rate(self): #TODO: pls review me :3
|
def _limit_rate(self):
|
||||||
since_last_call = time() - self.last_call
|
since_last_call = time() - self.last_call
|
||||||
to_next_call = self.min_interval - since_last_call
|
to_next_call = self.min_interval - since_last_call
|
||||||
self.last_call = time()
|
self.last_call = time()
|
||||||
|
Loading…
Reference in New Issue
Block a user