Skip to content

Commit

Permalink
remove alru_cache to check if it fixes stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf authored and iakat committed Jan 19, 2025
1 parent fec7e32 commit aaf853a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/adsb_api/utils/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import humanhash
import orjson
import redis.asyncio as redis
from async_lru import alru_cache

from adsb_api.utils.reapi import ReAPI
from adsb_api.utils.settings import (INGEST_DNS, INGEST_HTTP_PORT,
Expand Down Expand Up @@ -420,7 +419,6 @@ async def connect(self):
print(self.redis_connection_string)
self.redis = await redis.from_url(self.redis_connection_string)

@alru_cache(maxsize=1024)
async def get_route(self, callsign):
vrsroute = await self.redis.get(f"vrs:route:{callsign}")
if vrsroute is None:
Expand Down Expand Up @@ -461,7 +459,6 @@ async def get_route(self, callsign):

return ret

@alru_cache(maxsize=1024)
async def get_airport(self, icao):
data = await self.redis.get(f"vrs:airport:{icao}")
if data is None:
Expand Down

0 comments on commit aaf853a

Please sign in to comment.