Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocols/gossipsub: Fix a typo in error message #2739

Merged
merged 2 commits into from Jun 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 10 additions & 13 deletions protocols/gossipsub/src/behaviour.rs
Expand Up @@ -1516,19 +1516,16 @@ where
peer_id
);

if self
.send_message(
*peer_id,
GossipsubRpc {
subscriptions: Vec::new(),
messages: Vec::new(),
control_msgs: prune_messages,
}
.into_protobuf(),
)
.is_err()
{
error!("Failed to send graft. Message too large");
if let Err(e) = self.send_message(
*peer_id,
GossipsubRpc {
subscriptions: Vec::new(),
messages: Vec::new(),
control_msgs: prune_messages,
}
.into_protobuf(),
) {
error!("Failed to send PRUNE: {:?}", e);
}
}
debug!("Completed GRAFT handling for peer: {}", peer_id);
Expand Down