latency fix _cache_key_object (#7676)

This commit is contained in:
Ishaan Jaff 2025-01-10 13:59:26 -08:00 committed by GitHub
parent 00a0f56565
commit af08a0caed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -744,11 +744,13 @@ async def user_api_key_auth( # noqa: PLR0915
route=route,
start_time=start_time,
)
await _cache_key_object(
hashed_token=hash_token(master_key),
user_api_key_obj=_user_api_key_obj,
user_api_key_cache=user_api_key_cache,
proxy_logging_obj=proxy_logging_obj,
asyncio.create_task(
_cache_key_object(
hashed_token=hash_token(master_key),
user_api_key_obj=_user_api_key_obj,
user_api_key_cache=user_api_key_cache,
proxy_logging_obj=proxy_logging_obj,
)
)
return _user_api_key_obj