tweak ip-api cooldown (again)
This commit is contained in:
parent
44e2a491a0
commit
99b6ed3045
1 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,7 @@ class IpInfoByIpApi(IpInfoBase):
|
|||
|
||||
if x_remaining == 0:
|
||||
self.cooldown = time() + x_cooldown
|
||||
self.cooldown += 1.0 # still too frequent according to them
|
||||
|
||||
return None # no error
|
||||
|
||||
|
@ -119,7 +120,7 @@ class IpInfoByIpApi(IpInfoBase):
|
|||
err = "too many lines"
|
||||
else:
|
||||
err = "not ok"
|
||||
self.cooldown = time() + 60
|
||||
self.cooldown = time() + 30
|
||||
|
||||
writer.close()
|
||||
|
||||
|
|
Loading…
Reference in a new issue