fix: pass explicit None executor to run_in_executor for get_rants call
The diff shows a single change in `src/drstats/sync.py` where `loop.run_in_executor(get_rants)` is corrected to `loop.run_in_executor(None, get_rants)`, adding the required `None` argument for the executor parameter to match the asyncio API signature.
This commit is contained in:
parent
27bed374ad
commit
95e266c7cb
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user