Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Aug 13, 2020
1 parent 55caf5d commit 79e0e28
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions beacon_node/network/src/router/gossip_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,9 @@ impl<T: BeaconChainTypes> GossipProcessor<T> {
);
}
// There is a new work event, but the chain is syncing. Ignore it.
Some(WorkEvent {
message_id,
peer_id,
work,
}) if self.network_globals.sync_state.read().is_syncing() => {
Some(WorkEvent { .. })
if self.network_globals.sync_state.read().is_syncing() =>
{
metrics::inc_counter(&metrics::GOSSIP_PROCESSOR_WORK_EVENTS_IGNORED_TOTAL);
trace!(
self.log,
Expand Down

0 comments on commit 79e0e28

Please sign in to comment.