From 99b6ed3045d7c0ac1530e90fb8df2e6456eb2222 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 14 Aug 2021 17:42:59 -0700 Subject: [PATCH] tweak ip-api cooldown (again) --- respodns/ip_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/respodns/ip_info.py b/respodns/ip_info.py index b22af89..2cbca62 100644 --- a/respodns/ip_info.py +++ b/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()