Skip to content

Commit 099d76b

Browse files
committed
cache not lru_cache
1 parent 6c2dca9 commit 099d76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/utils/blockbuster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"""Activate and deactivate blockbuster for finding blocking I/O."""
22

3-
from functools import lru_cache
3+
from functools import cache
44
import logging
55

66
from blockbuster import BlockBuster
77

88
_LOGGER: logging.Logger = logging.getLogger(__name__)
99

1010

11-
@lru_cache(maxsize=1)
11+
@cache
1212
def _get_blockbuster() -> BlockBuster:
1313
"""Get blockbuster instance."""
1414
return BlockBuster()

0 commit comments

Comments
 (0)