Skip to content

Commit

Permalink
Removed caching from contains due to the use of a list (non hashable)…
Browse files Browse the repository at this point in the history
… as parameter
  • Loading branch information
dkmstr committed Oct 1, 2024
1 parent 81c5429 commit ad2b746
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/src/uds/core/util/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ def networks_from_str(
"""
return [network_from_str(str_net, version) for str_net in re.split('[;,]', networks_str) if str_net]

@functools.lru_cache(maxsize=32)
def contains(
networks: typing.Union[str, NetworkType, list[NetworkType]],
ip: typing.Union[str, int],
Expand Down

0 comments on commit ad2b746

Please sign in to comment.