Commit Graph
1 Commits
Author SHA1 Message Date
Clint Bodungen 625b6030ed Run prekey and pubkey fleet lookups off the event loop
dm_get_prekey_bundle and dm_get_pubkey are async but called the
synchronous fetch_dm_prekey_bundle directly. When the lookup handle
isn't local it calls peers over the network, which blocked the event
loop so every endpoint stopped answering until it returned. Run it with
asyncio.to_thread, as main.py does for other blocking calls, and add a
regression test that checks the loop keeps ticking during a slow lookup.
2026-09-29 09:50:52 -05:00