Remove outdated comments (#1336)

This commit is contained in:
Akihito Nakano 2020-07-11 09:33:11 +09:00 committed by GitHub
parent 57e0b6a615
commit 9ae218bfac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,