Skip to content

Commit 6eaf0b1

Browse files
committed
Fix order of arguments to log_count
See: sigp#4027
1 parent 319cc61 commit 6eaf0b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

beacon_node/beacon_chain/src/events.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,43 +65,43 @@ impl<T: EthSpec> ServerSentEventHandler<T> {
6565
EventKind::Attestation(_) => self
6666
.attestation_tx
6767
.send(kind)
68-
.map(|count| log_count(count, "attestation")),
68+
.map(|count| log_count("attestation", count)),
6969
EventKind::Block(_) => self
7070
.block_tx
7171
.send(kind)
72-
.map(|count| log_count(count, "block")),
72+
.map(|count| log_count("block", count)),
7373
EventKind::FinalizedCheckpoint(_) => self
7474
.finalized_tx
7575
.send(kind)
76-
.map(|count| log_count(count, "finalized checkpoint")),
76+
.map(|count| log_count("finalized checkpoint", count)),
7777
EventKind::Head(_) => self
7878
.head_tx
7979
.send(kind)
80-
.map(|count| log_count(count, "head")),
80+
.map(|count| log_count("head", count)),
8181
EventKind::VoluntaryExit(_) => self
8282
.exit_tx
8383
.send(kind)
84-
.map(|count| log_count(count, "exit")),
84+
.map(|count| log_count("exit", count)),
8585
EventKind::ChainReorg(_) => self
8686
.chain_reorg_tx
8787
.send(kind)
88-
.map(|count| log_count(count, "chain reorg")),
88+
.map(|count| log_count("chain reorg", count)),
8989
EventKind::ContributionAndProof(_) => self
9090
.contribution_tx
9191
.send(kind)
92-
.map(|count| log_count(count, "contribution and proof")),
92+
.map(|count| log_count("contribution and proof", count)),
9393
EventKind::PayloadAttributes(_) => self
9494
.payload_attributes_tx
9595
.send(kind)
96-
.map(|count| log_count(count, "payload attributes")),
96+
.map(|count| log_count("payload attributes", count)),
9797
EventKind::LateHead(_) => self
9898
.late_head
9999
.send(kind)
100-
.map(|count| log_count(count, "late head")),
100+
.map(|count| log_count("late head", count)),
101101
EventKind::BlockReward(_) => self
102102
.block_reward_tx
103103
.send(kind)
104-
.map(|count| log_count(count, "block reward")),
104+
.map(|count| log_count("block reward", count)),
105105
};
106106
if let Err(SendError(event)) = result {
107107
trace!(self.log, "No receivers registered to listen for event"; "event" => ?event);

0 commit comments

Comments
 (0)