Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/net/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ pub enum GossipEvent {
NeighborUp(NodeId),
/// We dropped direct neighbor in the swarm membership layer for this topic.
NeighborDown(NodeId),
/// We failed to connect to a peer that we wanted to join.
JoinFailed(NodeId),
/// We received a gossip message for this topic.
Received(Message),
}
Expand All @@ -363,6 +365,7 @@ impl From<crate::proto::Event<NodeId>> for GossipEvent {
match event {
crate::proto::Event::NeighborUp(node_id) => Self::NeighborUp(node_id),
crate::proto::Event::NeighborDown(node_id) => Self::NeighborDown(node_id),
crate::proto::Event::JoinFailed(node_id) => Self::JoinFailed(node_id),
crate::proto::Event::Received(message) => Self::Received(Message {
content: message.content,
scope: message.scope,
Expand Down
Loading
Loading