Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot refactor #30

Merged
merged 7 commits into from
Sep 9, 2023
Merged

Snapshot refactor #30

merged 7 commits into from
Sep 9, 2023

Conversation

jmsadair
Copy link
Owner

@jmsadair jmsadair commented Sep 9, 2023

This PR modifies the StateMachine interface such that NeedSnapshot now accepts a an unsigned integer representing the size of the log in bytes. This is more useful for users of this library - prior to this, there was not an easy way to determine when a snapshot should be taken based off of the size of the persisted log.

The existing test suite suffices to cover this change. No new tests were added.

@jmsadair jmsadair merged commit 8ad600d into dev Sep 9, 2023
4 checks passed
@jmsadair jmsadair deleted the snapshot-refactor branch September 9, 2023 23:54
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.

1 participant