Skip to content
Snippets Groups Projects
Commit c2ec30e3 authored by Erik Reid's avatar Erik Reid
Browse files

added maxsize param to lru_cache (for py3.6)

parent 92822143
No related branches found
No related tags found
No related merge requests found
......@@ -260,7 +260,7 @@ def load_xml_docs(config_params, key_pattern, num_threads=10):
config_params, key_pattern, num_threads, doc_type=_DECODE_TYPE_XML)
@functools.lru_cache
@functools.lru_cache(maxsize=None)
def load_snmp_indexes(hostname=None):
result = dict()
key_pattern = f'snmp-interfaces:{hostname}*' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment