Skip to content

refactor: separate Raft API and impl #1367

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

Merged
merged 1 commit into from
May 15, 2025

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented May 14, 2025

Changelog

refactor: separate Raft API and impl

For development concerns, we've separated the API interface from its implementation.
During this refactoring, we maintained backward compatibility - the user-facing API
remains unchanged. We kept the Raft struct as an API layer providing consistent methods,
while moving all implementation details into several other structures. These implementation
structures focus solely on core functionality, with the Raft API methods calling them and
handling any necessary type conversions. This separation creates a clearer view of the
implementation with a one-way contract, ensuring the user API remains stable and unaffected.

  • Improvement

This change is Reviewable

@drmingdrmer drmingdrmer marked this pull request as draft May 15, 2025 02:53
For development concerns, we've separated the API interface from its implementation.
During this refactoring, we maintained backward compatibility - the user-facing API
remains unchanged. We kept the Raft struct as an API layer providing consistent methods,
while moving all implementation details into several other structures. These implementation
structures focus solely on core functionality, with the Raft API methods calling them and
handling any necessary type conversions. This separation creates a clearer view of the
implementation with a one-way contract, ensuring the user API remains stable and unaffected.
@drmingdrmer drmingdrmer marked this pull request as ready for review May 15, 2025 03:31
@drmingdrmer drmingdrmer merged commit 53477fb into databendlabs:main May 15, 2025
33 of 35 checks passed
@drmingdrmer drmingdrmer deleted the 205-reduce-error branch May 15, 2025 09:53
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