tweak ip-api cooldown (again)

This commit is contained in:
Connor Olding 2021-08-14 17:42:59 -07:00
parent 44e2a491a0
commit 99b6ed3045

View file

@ -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()