mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix: fix linting error
This commit is contained in:
parent
0b057cb8a4
commit
ed42b55a84
1 changed files with 1 additions and 2 deletions
|
@ -3133,8 +3133,7 @@ class Router:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# First, try to get the current event loop
|
# 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
|
# If we're already in an event loop, run in a separate thread
|
||||||
# to avoid nested event loop issues
|
# to avoid nested event loop issues
|
||||||
with ThreadPoolExecutor(max_workers=1) as executor:
|
with ThreadPoolExecutor(max_workers=1) as executor:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue