-
Notifications
You must be signed in to change notification settings - Fork 23
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
Replace the UDP replication protocol with gRPC for the distributed store #337
Conversation
…ore.. Signed-off-by: Hiram Chirino <[email protected]>
rebased. |
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.
Approving, but thinking we should split the mod.rs
up, as it's getting big and still these types still lack some unit tests...
Left a few other comments, we'll iterate as we go!
Thanks 🙏
}, | ||
Some(Err(err)) => { | ||
if is_disconnect(&err) { | ||
println!("peer: '{}': disconnected: {:?}", self.peer_id, err); |
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.
These could become tracing::{error!, warn!, info!}
macros... Same syntax. Error level is enabled by default when launching the server, while warn, info, debug, trace
are -v
, -vv
, -vvv
or -vvvv
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.
will do.
|
||
async fn process(&mut self, in_stream: &mut Streaming<Packet>) -> Result<(), Status> { | ||
// Send a MembershipUpdate to inform the peer about all the members | ||
// We should resend it again if we learn of new members. |
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.
So the intent is to have every node share the nodes it knows about? Is there a way to "forget about a node"? Or is the idea to keep the set a grow only set?
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.
Need to think about this one a bit more.. maybe they should have some kinda of lease that gets renewed? not sure.
use std::path::Path; | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
generate_protobuf() |
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 probably should be conditional on the feature being enabled... see cfg!
, such as here
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.
will do.
Signed-off-by: Hiram Chirino <[email protected]>
No description provided.