Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 2, 2024
1 parent f1db8ea commit 5527f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ota_proxy/ota_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ async def _do_request() -> AsyncIterator[bytes]:
resp_headers: CIMultiDictProxy[str] = await (_remote_fd := _do_request()).__anext__() # type: ignore
return _remote_fd, resp_headers

async def _retrieve_file_by_cache(
async def _retrieve_file_by_cache_lookup(
self, *, raw_url: str, cache_policy: OTAFileCacheControl
) -> tuple[AsyncIterator[bytes], CIMultiDict[str]] | None:
"""
Expand Down Expand Up @@ -595,7 +595,7 @@ async def retrieve_file(
if _res := await self._retrieve_file_by_external_cache(cache_policy):
return _res

if _res := await self._retrieve_file_by_cache(
if _res := await self._retrieve_file_by_cache_lookup(
raw_url=raw_url, cache_policy=cache_policy
):
return _res
Expand Down

0 comments on commit 5527f37

Please sign in to comment.