From eba0aaf3c2c40c08c131b80134382e0c9638959a Mon Sep 17 00:00:00 2001 From: colorfulgray0 Date: Mon, 15 Jul 2024 14:08:10 +0800 Subject: [PATCH] chore: remove contextmanager --- freqtrade/rpc/api_server/uvicorn_threaded.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/freqtrade/rpc/api_server/uvicorn_threaded.py b/freqtrade/rpc/api_server/uvicorn_threaded.py index cad8251db..d717c5567 100644 --- a/freqtrade/rpc/api_server/uvicorn_threaded.py +++ b/freqtrade/rpc/api_server/uvicorn_threaded.py @@ -1,4 +1,3 @@ -import contextlib import threading import time @@ -53,7 +52,6 @@ class UvicornServer(uvicorn.Server): loop = asyncio.new_event_loop() loop.run_until_complete(self.serve(sockets=sockets)) - @contextlib.contextmanager def run_in_thread(self): self.thread = threading.Thread(target=self.run, name="FTUvicorn") self.thread.start()