Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mfornet committed Aug 12, 2020
1 parent 1c6bf96 commit 482bc0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion chain/network/src/peer_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,8 @@ impl Handler<PeerRequest> for PeerManagerActor {
impl Handler<PeerMessageMetadata> for PeerManagerActor {
type Result = ();
fn handle(&mut self, msg: PeerMessageMetadata, _ctx: &mut Self::Context) -> Self::Result {
let _d = DelayDetector::new("peer message metadata");
#[cfg(feature = "delay_detector")]
let _d = DelayDetector::new("peer message metadata".into());
self.metric_recorder.handle_peer_message(msg);
}
}
2 changes: 1 addition & 1 deletion chain/network/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ impl RoutingTable {
/// Recalculate routing table.
pub fn update(&mut self) {
#[cfg(feature = "delay_detector")]
let _d = DelayDetector::new("routing table update");
let _d = DelayDetector::new("routing table update".into());
let _routing_table_recalculation =
near_metrics::start_timer(&metrics::ROUTING_TABLE_RECALCULATION_HISTOGRAM);

Expand Down

0 comments on commit 482bc0e

Please sign in to comment.