Fix attr accesses on msg type

ems_to_bidir_streaming
Tyler Goodlet 2021-06-09 12:22:02 -04:00
parent 4cae470f3a
commit 8e8a005128
1 changed files with 1 additions and 1 deletions
piker/brokers

View File

@ -1399,7 +1399,7 @@ async def trades_dialogue(
# it's a trade event generated by TWS usage. # it's a trade event generated by TWS usage.
log.warning(f"TWS triggered trade:\n{pformat(msg)}") log.warning(f"TWS triggered trade:\n{pformat(msg)}")
msg['reqid'] = 'tws-' + str(-1 * msg['reqid']) msg.reqid = 'tws-' + str(-1 * msg.reqid)
# mark msg as from "external system" # mark msg as from "external system"
# TODO: probably something better then this.. and start # TODO: probably something better then this.. and start