fix: fix linting error

This commit is contained in:
Krrish Dholakia 2024-10-29 22:32:55 -07:00
parent 0b057cb8a4
commit ed42b55a84

View file

@ -3133,8 +3133,7 @@ class Router:
try:
# First, try to get the current event loop
loop = asyncio.get_running_loop()
_ = asyncio.get_running_loop()
# If we're already in an event loop, run in a separate thread
# to avoid nested event loop issues
with ThreadPoolExecutor(max_workers=1) as executor: