-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat(grpc, types, proto)!: Add tonic gRPC #454
base: main
Are you sure you want to change the base?
Conversation
4d146d9
to
b9a99f0
Compare
Co-authored-by: Maciej Zwoliński <[email protected]> Signed-off-by: Mikołaj Florkiewicz <[email protected]>
Cargo.toml
Outdated
@@ -1,20 +1,23 @@ | |||
[workspace] | |||
resolver = "2" | |||
members = ["cli", "node", "node-wasm", "proto", "rpc", "types"] | |||
members = ["cli", "node", "node-wasm", "proto", "rpc", "grpc", "types"] |
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.
I think grpc/grpc-macros
should be specified too.
grpc/src/types/auth.rs
Outdated
|
||
/// Enum representing different types of account | ||
#[derive(Debug, PartialEq)] | ||
#[non_exhaustive] |
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.
Why non_exhaustive
?
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.
My thinking was to be future compatible in case new account type pops up. Upon retrospection I'm not sure that's needed and we can just release breaking version in that case.
types/src/bit_array.rs
Outdated
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.
could we move this and auth to the state/
?
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.
yup, moved 👍
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.
I think you forgot to move bit_array
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.
I thought of it as a container type, which is why I put it in root, but actually we can move it to state since it's only used there.
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.
left some last comments, otherwise lgtm
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.
lgtm
No description provided.