Skip to content

Commit d5ea8ff

Browse files
committed
.
1 parent b7785cc commit d5ea8ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/onyx/utils/threadpool_concurrency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ def run_async_sync(coro: Awaitable[T]) -> T:
289289
context = contextvars.copy_context()
290290
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as executor:
291291
future: concurrent.futures.Future[T] = executor.submit(
292-
+ context.run, asyncio.run, coro
293-
+ )
292+
context.run, asyncio.run, coro
293+
)
294294
return future.result()
295295

296296
class TimeoutThread(threading.Thread, Generic[R]):

0 commit comments

Comments
 (0)