Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
shore
Am I live
Commits
9f069eec
Commit
9f069eec
authored
Apr 11, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/_dns.py
View file @
9f069eec
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment