mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
refactoring
This commit is contained in:
parent
3748360deb
commit
6b2b9c6ec4
@ -147,8 +147,8 @@ class HidApi:
|
|||||||
return self.__inner_ensure_symmap(path, st.st_mtime)
|
return self.__inner_ensure_symmap(path, st.st_mtime)
|
||||||
|
|
||||||
@functools.lru_cache(maxsize=10)
|
@functools.lru_cache(maxsize=10)
|
||||||
def __inner_ensure_symmap(self, path: str, mtime: int) -> dict[int, dict[int, str]]:
|
def __inner_ensure_symmap(self, path: str, mod_ts: int) -> dict[int, dict[int, str]]:
|
||||||
_ = mtime # For LRU
|
_ = mod_ts # For LRU
|
||||||
return build_symmap(path)
|
return build_symmap(path)
|
||||||
|
|
||||||
# =====
|
# =====
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user