Skip to content

Commit

Permalink
fix(ws): Fix tx history streamer wrong logging when pauseProducing() …
Browse files Browse the repository at this point in the history
…is called multiple times
  • Loading branch information
msbrogli committed Sep 10, 2024
1 parent e26a841 commit 9fddd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hathor/websocket/streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def can_transition_to(self, destination: 'StreamerState') -> bool:
VALID_TRANSITIONS = {
StreamerState.NOT_STARTED: {StreamerState.ACTIVE},
StreamerState.ACTIVE: {StreamerState.ACTIVE, StreamerState.PAUSED, StreamerState.CLOSING, StreamerState.CLOSED},
StreamerState.PAUSED: {StreamerState.ACTIVE, StreamerState.CLOSED},
StreamerState.PAUSED: {StreamerState.ACTIVE, StreamerState.PAUSED, StreamerState.CLOSED},
StreamerState.CLOSING: {StreamerState.CLOSED},
StreamerState.CLOSED: set()
}
Expand Down

0 comments on commit 9fddd7a

Please sign in to comment.