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

change: trait RaftStore: remove get_membership_config(), add last_membership_in_log() and get_membership() with default impl #60

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

drmingdrmer
Copy link
Member

Changelog

change: trait RaftStore: remove get_membership_config(), add last_membership_in_log() and get_membership() with default impl

Goal: minimize the work for users to implement a correct raft application.

Now RaftStorage provides default implementations for get_membership()
and last_membership_in_log().

These two methods just can be implemented with other basic user impl
methods.


@drmingdrmer drmingdrmer added the A-store Area: storage label Jan 4, 2022
@drmingdrmer drmingdrmer marked this pull request as ready for review January 4, 2022 15:22
…bership_in_log() and get_membership() with default impl

Goal: minimize the work for users to implement a correct raft application.

Now RaftStorage provides default implementations for `get_membership()`
and `last_membership_in_log()`.

These two methods just can be implemented with other basic user impl
methods.

- fix: #59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-store Area: storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimize RaftStorage API: remove get_membership_config, add last_membership_in_log
1 participant