Hack client check for `ib` using flag
parent
d641f77a80
commit
6feef5f1d9
|
@ -1353,6 +1353,7 @@ async def open_client_proxy(
|
|||
|
||||
@acm
|
||||
async def get_client(
|
||||
is_brokercheck: bool = False,
|
||||
**kwargs,
|
||||
|
||||
) -> Client:
|
||||
|
@ -1361,6 +1362,10 @@ async def get_client(
|
|||
a method proxy to it.
|
||||
|
||||
'''
|
||||
if is_brokercheck:
|
||||
yield Client
|
||||
return
|
||||
|
||||
# TODO: the IPC via portal relay layer for when this current
|
||||
# actor isn't in aio mode.
|
||||
async with open_data_client() as proxy:
|
||||
|
|
Loading…
Reference in New Issue