mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 01:21:11 +00:00
Merge pull request #10424 from iridescentGray/develop
fix: remove contextmanager
This commit is contained in:
commit
beceacc3c5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user