Skip to content

Commit

Permalink
fix call_soon_threadsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Jul 19, 2022
1 parent 26cddd2 commit 1c28f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions howtrader/api/rest/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def add_request(
extra,
)

self._process_request(request)
# coro: coroutine = self._process_request(request)
# run_coroutine_threadsafe(coro, self.loop)
coro: coroutine = self._process_request(request)
if self.loop:
run_coroutine_threadsafe(coro, self.loop)
return request

def request(
Expand Down

0 comments on commit 1c28f31

Please sign in to comment.