Remove outdated comments (#1336)
This commit is contained in:
parent
57e0b6a615
commit
9ae218bfac
@ -393,14 +393,11 @@ impl<TSpec: EthSpec> Behaviour<TSpec> {
|
|||||||
fn on_gossip_event(&mut self, event: GossipsubEvent) {
|
fn on_gossip_event(&mut self, event: GossipsubEvent) {
|
||||||
match event {
|
match event {
|
||||||
GossipsubEvent::Message(propagation_source, id, gs_msg) => {
|
GossipsubEvent::Message(propagation_source, id, gs_msg) => {
|
||||||
// Note: We are keeping track here of the peer that sent us the message, not the
|
|
||||||
// peer that originally published the message.
|
|
||||||
match PubsubMessage::decode(&gs_msg.topics, &gs_msg.data) {
|
match PubsubMessage::decode(&gs_msg.topics, &gs_msg.data) {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
debug!(self.log, "Could not decode gossipsub message"; "error" => format!("{}", e))
|
debug!(self.log, "Could not decode gossipsub message"; "error" => format!("{}", e))
|
||||||
}
|
}
|
||||||
Ok(msg) => {
|
Ok(msg) => {
|
||||||
// if this message isn't a duplicate, notify the network
|
|
||||||
self.add_event(BehaviourEvent::PubsubMessage {
|
self.add_event(BehaviourEvent::PubsubMessage {
|
||||||
id,
|
id,
|
||||||
source: propagation_source,
|
source: propagation_source,
|
||||||
|
Loading…
Reference in New Issue
Block a user