Browse Source

tweak ip-api cooldown (again)

master
Connor Olding 4 months ago
parent
commit
99b6ed3045
  1. 3
      respodns/ip_info.py

3
respodns/ip_info.py

@ -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…
Cancel
Save