Skip to content

Commit

Permalink
fix: fix not properly pass args and kwargs when cache disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mddanish00 committed Sep 17, 2024
1 parent c15f34a commit 539a501
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stas_server/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def __call__(cls, *args: PT.args, **kwargs: PT.kwargs) -> RT:

return cls.cached_func(__hash)
else:
return func(args, kwargs)
print(*args)
kwargs.pop("enable_cache")
return func(*args, **kwargs)

return _lru_cache_ext_wrapper()

Expand Down

0 comments on commit 539a501

Please sign in to comment.