-
Notifications
You must be signed in to change notification settings - Fork 37
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
Introduce more common types #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Till, LGTM 👍
For your consideration: uszie
vs u64
src/common/src/types.rs
Outdated
@@ -1,2 +1,15 @@ | |||
use uuid::Uuid; | |||
|
|||
/// Identifying a member of a raft group | |||
pub type PeerId = usize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that it matters a lot, but usize
is a pointer sized type and thus architecture specific (32 or 64 bit) usize
Not that we are planning to support 32 bit systems, but perhaps u64
is a bit safer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense. Will change it.
The new common types are: * LeaderEpoch * PartitionId * PartitionLeaderEpoch * InovcationId This fixes #56.
…eb24f..4378d559 4378d559 Move headers into InputStreamEntry. (restatedev#75) 433d4466 Remove the old discovery. Fix restatedev#71 git-subtree-dir: crates/service-protocol/service-protocol git-subtree-split: 4378d559db7a53a477dd091b636a64712b2b630e
…eb24f..4378d559 4378d559 Move headers into InputStreamEntry. (restatedev#75) 433d4466 Remove the old discovery. Fix restatedev#71 git-subtree-dir: crates/service-protocol/service-protocol git-subtree-split: 4378d559db7a53a477dd091b636a64712b2b630e
The new common types are:
This fixes #56.