Remove extra Noen check on msg.get
parent
1b1e35d32d
commit
f67ffeb70f
|
@ -526,7 +526,6 @@ async def stream_quotes(
|
||||||
# take care to not unblock here until we get a real trade quote
|
# take care to not unblock here until we get a real trade quote
|
||||||
typ, quote = await anext(msg_gen)
|
typ, quote = await anext(msg_gen)
|
||||||
|
|
||||||
|
|
||||||
task_status.started((init_msgs, quote))
|
task_status.started((init_msgs, quote))
|
||||||
feed_is_live.set()
|
feed_is_live.set()
|
||||||
|
|
||||||
|
@ -571,7 +570,7 @@ async def stream_messages(ws: NoBsWs, sym: str) -> AsyncGenerator[NoBsWs, dict]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
if msg.get('subject') != None:
|
if msg.get('subject'):
|
||||||
msg = KucoinMsg(**msg)
|
msg = KucoinMsg(**msg)
|
||||||
match msg.subject:
|
match msg.subject:
|
||||||
case 'trade.ticker':
|
case 'trade.ticker':
|
||||||
|
|
Loading…
Reference in New Issue