Skip to content

Commit

Permalink
refactor: set maxsize as 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Apr 23, 2022
1 parent c58fcb3 commit 405b2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abuse_whois/whois.py
Expand Up @@ -16,12 +16,12 @@
)


@functools.lru_cache()
@functools.lru_cache(maxsize=1)
def get_whois_command() -> sh.Command:
return sh.Command("whois")


@functools.lru_cache()
@functools.lru_cache(maxsize=1)
def get_whois_parser() -> WhoisParser:
return WhoisParser()

Expand Down

0 comments on commit 405b2b3

Please sign in to comment.