Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #2787 passed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment