Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Rename extra_requests module to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Jun 23, 2022
1 parent 93849a1 commit 6e1eae4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/network/common/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

//! Abstract interfaces and data structures related to network sync.
pub mod extra_requests;
pub mod message;
pub mod metrics;
pub mod warp;

use libp2p::PeerId;
Expand Down Expand Up @@ -172,7 +172,7 @@ pub enum SyncMode {
pub struct Metrics {
pub queued_blocks: u32,
pub fork_targets: u32,
pub justifications: extra_requests::Metrics,
pub justifications: metrics::Metrics,
}

/// Wrapper for implementation-specific state request.
Expand Down
2 changes: 1 addition & 1 deletion client/network/sync/src/extra_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{PeerSync, PeerSyncState};
use fork_tree::ForkTree;
use libp2p::PeerId;
use log::{debug, trace, warn};
use sc_network_common::sync::extra_requests::Metrics;
use sc_network_common::sync::metrics::Metrics;
use sp_blockchain::Error as ClientError;
use sp_runtime::traits::{Block as BlockT, NumberFor, Zero};
use std::{
Expand Down

0 comments on commit 6e1eae4

Please sign in to comment.