Skip to content

Commit d62224b

Browse files
committed
fix: use async lru_cache
1 parent 6e61dfe commit d62224b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212
"accept-types < 1",
1313
"aiohttp < 4",
1414
"aiokafka == 0.10.0",
15+
"async_lru",
1516
"cachetools == 5.3.3",
1617
"confluent-kafka == 2.4.0",
1718
"isodate < 1",

src/karapace/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from avro.io import BinaryDecoder, BinaryEncoder, DatumReader, DatumWriter
99
from cachetools import TTLCache
1010
from collections.abc import MutableMapping
11-
from functools import lru_cache
11+
from async_lru import lru_cache
1212
from google.protobuf.message import DecodeError
1313
from jsonschema import ValidationError
1414
from karapace.client import Client

0 commit comments

Comments
 (0)