Skip to content

Commit

Permalink
address build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Mar 14, 2024
1 parent 38b96d3 commit 91d5b0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chain/network/src/peer/peer_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ impl PeerActor {
tracing::trace!(target: "network", msg_len = bytes_len);
self.framed.send(stream::Frame(bytes));
metrics::PEER_DATA_SENT_BYTES.inc_by(bytes_len as u64);
let msg_type = msg.msg_variant();
metrics::PEER_MESSAGE_SENT_BY_TYPE_TOTAL.with_label_values(&[msg_type]).inc();
metrics::PEER_MESSAGE_SENT_BY_TYPE_BYTES
.with_label_values(&[msg_type])
Expand Down Expand Up @@ -936,7 +937,7 @@ impl PeerActor {
target = "network",
"receive_routed_message",
skip_all,
fields("type" = body_type),
fields(body_type = <&'static str>::from(&body)),
)]
async fn receive_routed_message(
clock: &time::Clock,
Expand Down Expand Up @@ -1174,7 +1175,7 @@ impl PeerActor {
target = "network",
"handle_msg_ready",
skip_all,
fields("type" = <&PeerMessage as Into<&'static str>>::into(&peer_msg)),
fields(msg_type = <&'static str>::from(&peer_msg)),
)]
fn handle_msg_ready(
&mut self,
Expand Down

0 comments on commit 91d5b0f

Please sign in to comment.