Commit 9f069eec authored by nimrod's avatar nimrod
Browse files

Allow using lru_cahe on methods.

I don't care about memory leaks, it's a very short lived Lambda
function.
parent 81c39fcb
Pipeline #2787 passed with stages
in 10 minutes and 31 seconds
......@@ -15,7 +15,7 @@ class CheckDNS(Check): # pylint: disable=abstract-method
_domain = "shore.co.il"
_subdomains = [_domain, f"www.{_domain}"]
@lru_cache(3)
@lru_cache(3) # noqa: B019
def _get_resolvers(self):
"""Return a list of resolvers for each nameserver in the DNS zone."""
default_resolver = dns.resolver.Resolver()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment