Skip to content

Commit

Permalink
move near_network_primitives::metrics back into near_network
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Aug 11, 2021
1 parent be74434 commit 9a4d37c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion chain/network-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ lazy_static = "1.4"

near-crypto = { path = "../../core/crypto" }
near-primitives = { path = "../../core/primitives" }
near-metrics = { path = "../../core/metrics" }

[features]
adversarial = []
Expand Down
1 change: 0 additions & 1 deletion chain/network-primitives/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#[cfg(feature = "metric_recorder")]
pub mod recorder;

pub mod metrics;
pub mod routing;
pub mod types;
2 changes: 1 addition & 1 deletion chain/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ pub use near_network_primitives::types::{
pub use peer::{EPOCH_SYNC_PEER_TIMEOUT_MS, EPOCH_SYNC_REQUEST_TIMEOUT_MS};
pub use peer_manager::PeerManagerActor;

pub use near_network_primitives::metrics;
#[cfg(feature = "metric_recorder")]
pub use near_network_primitives::recorder;

mod cache;
mod codec;
pub mod metrics;
mod peer;
mod peer_manager;
pub mod peer_store;
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions chain/network/src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ use crate::types::{
UPDATE_INTERVAL_LAST_TIME_RECEIVED_MESSAGE,
};
use crate::PeerManagerActor;
use crate::{metrics::NetworkMetrics, NetworkResponses};
use crate::{
metrics::{self, NetworkMetrics},
NetworkResponses,
};
#[cfg(feature = "delay_detector")]
use delay_detector::DelayDetector;
use near_network_primitives::metrics;
use near_performance_metrics_macros::perf;
use near_primitives::sharding::PartialEncodedChunk;
use near_rust_allocator_proxy::allocator::get_tid;
Expand Down

0 comments on commit 9a4d37c

Please sign in to comment.