Skip to content

Commit

Permalink
Update streamer.py (#103)
Browse files Browse the repository at this point in the history
* Update streamer.py

Fixing issue #100

* Lint fix streamer.py
  • Loading branch information
Quenos authored Nov 16, 2023
1 parent e4af7aa commit a8a8982
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tastytrade/streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,9 @@ async def _connect(self) -> None:
self._heartbeat_task = \
asyncio.create_task(self._heartbeat())
elif message['type'] == 'CHANNEL_OPENED':
self._subscription_state[message['channel']] \
channel = next((k for k, v in self._channels.items()
if v == message['channel']))
self._subscription_state[channel] \
= message['type']
elif message['type'] == 'FEED_CONFIG':
pass
Expand Down

0 comments on commit a8a8982

Please sign in to comment.