-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: use RaftTypeConfig to replace NID
- `StorageError<NID>` to `StorageError<C>` - `StorageIOError<NID>` to `StorageIOError<C>` - `ErrorSubject<NID>` to `ErrorSubject<C>` - `DefensiveError<NID>` to `DefensiveError<C>` - `Violation<NID>` to `Violation<C>` - `SnapshotSignature<NID>` to `SnapshotSignature<C>` - `ChangeMembers<NID, N>` to `ChangeMembers<C>` - `LogIdList<NID>` to `LogIdList<C>` Upgrade tip: Replace `StorageError<NID>` with `StorageError<C>`, such as: ```diff - async fn apply<I>(&mut self, entries: I) -> Result<Vec<Response>, StorageError<NodeId>> + async fn apply<I>(&mut self, entries: I) -> Result<Vec<Response>, StorageError<TypeConfig>> ``` Types to replace: - `StorageError<NID>` to `StorageError<C>` - `StorageIOError<NID>` to `StorageIOError<C>` - `ErrorSubject<NID>` to `ErrorSubject<C>` - `DefensiveError<NID>` to `DefensiveError<C>` - `Violation<NID>` to `Violation<C>` - `SnapshotSignature<NID>` to `SnapshotSignature<C>` - `ChangeMembers<NID, N>` to `ChangeMembers<C>` - `LogIdList<NID>` to `LogIdList<C>`
- Loading branch information
1 parent
c6004cd
commit 9dbcd4c
Showing
46 changed files
with
444 additions
and
439 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
Oops, something went wrong.