From b569a1ea153c62cb24646664fe0ad32a7b091b86 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 3 Dec 2024 04:31:06 +0100 Subject: [PATCH] Run in executor --- src/drstats/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drstats/sync.py b/src/drstats/sync.py index 0c5f8d0..82b08b5 100644 --- a/src/drstats/sync.py +++ b/src/drstats/sync.py @@ -32,7 +32,7 @@ async def get_recent_rants(start_from=1, page_size=10): def get_rants(): return dr.get_rants("recent", page_size, start_from)["rants"] - rants = asyncio.wait_for(loop.run_in_executor(get_rants), 5) + rants = asyncio.wait_for(loop.run_in_executor(None,get_rants), 5) page += 1 for rant in rants: