Skip to content

Commit

Permalink
protocols/gossipsub: Fix a typo in error message (#2739)
Browse files Browse the repository at this point in the history
* protocols/gossipsub: Fix a typo in error message

* protocols/gossipsub: Make the error message accurately
  • Loading branch information
ackintosh committed Jun 30, 2022
1 parent 423adca commit 748588e
Showing 1 changed file with 10 additions and 13 deletions.
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

0 comments on commit 748588e

Please sign in to comment.