tweak ip-api cooldown (again)

This commit is contained in:
Connor Olding 2021-08-14 17:42:59 -07:00
parent 44e2a491a0
commit 99b6ed3045
1 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ class IpInfoByIpApi(IpInfoBase):
if x_remaining == 0: if x_remaining == 0:
self.cooldown = time() + x_cooldown self.cooldown = time() + x_cooldown
self.cooldown += 1.0 # still too frequent according to them
return None # no error return None # no error
@ -119,7 +120,7 @@ class IpInfoByIpApi(IpInfoBase):
err = "too many lines" err = "too many lines"
else: else:
err = "not ok" err = "not ok"
self.cooldown = time() + 60 self.cooldown = time() + 30
writer.close() writer.close()