-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: do not store learners in Membership
- Change: rename NodeIdNotInNodes to LackNodeInfo for letting it represent a more generalized error type. - Change: remove struct `EitherNodesOrIds`, add trait `IntoOptionNodes` to convert types into internal type to store node infos. Because we do not need to store multiple types, but only need to convert them to our type. - Change: Membership remove redundent field `learners`: the node ids that are in `Membership.nodes` but not in `Membership.configs` are learners. Some method signatures changed along: - Change: `EffectiveMembership.get_nodes()` and `Membership.get_nodes()` returns `&BTreeMap` instead of `Option<BTreeMap>`. - Change: `EffectiveMembership.get_node()` use `&node_id` instead of `node_id` for arg. - Add: `Membership::with_nodes(configs, nodes)` to create a new instance with membership configs and optional node infos. - fix: #225 commit-id:e0ff8a75
- Loading branch information
1 parent
6eeb930
commit 650e235
Showing
13 changed files
with
239 additions
and
323 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
Oops, something went wrong.