From 4381c9e5727846774168663ebed4740b904f05f7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Aug 2024 11:46:33 +0800 Subject: [PATCH] bugfix --- appPublic/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appPublic/worker.py b/appPublic/worker.py index b0f36d5..1179cfd 100755 --- a/appPublic/worker.py +++ b/appPublic/worker.py @@ -14,10 +14,10 @@ def awaitify(sync_func): return async_func def coroutinify(func): - @wraps(sync_func) + @wraps(func) async def async_func(*args): loop = asyncio.get_event_loop() - return await loop.run_in_executor(None, sync_func, *args) + return await loop.run_in_executor(None, func, *args) return async_func def to_func(func):