Skip to content

Refactor internal snapshot state - #409

Open
maarten-ic wants to merge 1 commit into
developfrom
refactor/internal-snapshot-state
Open

Refactor internal snapshot state#409
maarten-ic wants to merge 1 commit into
developfrom
refactor/internal-snapshot-state

Conversation

@maarten-ic

Copy link
Copy Markdown
Collaborator
  • Create CommunicatorState which captures both the port_message_counts and timeline_state. This will store the message cache (for repeated messages) as well in the future
  • Store CommunicatorState before calling pre-receive, instead of trying to correct the state after the pre-receive

- Create CommunicatorState which captures both the `port_message_counts` and `timeline_state`. This will store the message cache (for repeated messages) as well in the future
- Store CommunicatorState before calling pre-receive, instead of trying to correct the state after the pre-receive

Args:
state: The state to restore, as returned by get_state().
"""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this docstring, as this also includes the message counts?

@LourensVeen LourensVeen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the concept, and it looks cleaner, so nice! Also I agree with Iris about that comment, otherwise let's go 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants