Make most of the HTTP requests async

This commit is contained in:
Thomas Sileo 2022-06-30 00:28:07 +02:00
parent 3e17e17e2a
commit d371e3cd4f
12 changed files with 88 additions and 82 deletions

View file

@ -160,7 +160,7 @@ async def fetch_actor(db_session: AsyncSession, actor_id: str) -> "ActorModel":
if existing_actor:
return existing_actor
ap_actor = ap.get(actor_id)
ap_actor = await ap.fetch(actor_id)
return await save_actor(db_session, ap_actor)