-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Consolidate type parameters into
C
Affected types: - Membership types; - RPC request and response types; - Error types; Upgrade tip: To adapt to this change, update type parameters with the single generic `C` constrained by `RaftTypeConfig`: ```rust,ignore // Membership types: MembershipState<NID, N> --> MembershipState<C> EffectiveMembership<NID, N> --> EffectiveMembership<C> Membership<NID, N> --> Membership<C> // RPC types: VoteRequest<NID> --> VoteRequest<C> VoteResponse<NID> --> VoteResponse<C> AppendEntriesResponse<NID> --> AppendEntriesResponse<C> InstallSnapshotResponse<NID> --> InstallSnapshotResponse<C> SnapshotResponse<NID> --> SnapshotResponse<C> SnapshotMeta<NID, N> --> SnapshotMeta<C> // Errors: InitializeError<NID, N> --> InitializeError<C> NotInMembers<NID, N> --> NotInMembers<C> ClientWriteError<NID> --> ClientWriteError<C> CheckIsLeaderError<NID> --> CheckIsLeaderError<C> RaftError<NID, E> --> RaftError<C, E> RPCError<NID, N, E> --> RPCError<C, E> RemoteError<NID, N, E> --> RemoteError<C, E> ChangeMembershipError<NID> --> ChangeMembershipError<C> ForwardToLeader<NID, N> --> ForwardToLeader<C> HigherVote<NID> --> HigherVote<C> InProgress<NID> --> InProgress<C> LearnerNotFound<NID> --> LearnerNotFound<C> NotAllowed<NID> --> NotAllowed<C> QuorumNotEnough<NID> --> QuorumNotEnough<C> Timeout<NID> --> Timeout<C> RejectVoteRequest<NID> --> RejectVoteRequest<C> RejectAppendEntries<NID> --> RejectAppendEntries<C> Fatal<NID> --> Fatal<C> ```
- Loading branch information
1 parent
135370a
commit fc73dc7
Showing
102 changed files
with
783 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.