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

Commit

Permalink
fix perf compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
adria0 committed Jun 5, 2020
1 parent f85bd40 commit 6e967d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ethcore/src/test_helpers/test_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ use spec::{Spec, self};
use account_state::state::StateInfo;
use state_db::StateDB;
use trace::LocalizedTrace;
use stats::{PrometheusMetrics,prometheus};

/// Test client.
pub struct TestBlockChainClient {
Expand Down Expand Up @@ -995,3 +996,8 @@ impl client_traits::EngineClient for TestBlockChainClient {
BlockChainClient::block_header(self, id)
}
}

impl PrometheusMetrics for TestBlockChainClient {
fn prometheus_metrics(&self, r: &mut prometheus::Registry) {
}
}
6 changes: 6 additions & 0 deletions rpc/src/v1/tests/helpers/sync_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use parking_lot::RwLock;
use network::client_version::ClientVersion;
use futures::sync::mpsc;
use sync::{SyncProvider, EthProtocolInfo, SyncStatus, PeerInfo, TransactionStats, SyncState};
use stats::{PrometheusMetrics,prometheus};

/// TestSyncProvider config.
pub struct Config {
Expand Down Expand Up @@ -72,6 +73,11 @@ impl TestSyncProvider {
}
}

impl PrometheusMetrics for TestSyncProvider {
fn prometheus_metrics(&self, r: &mut prometheus::Registry) {
}
}

impl SyncProvider for TestSyncProvider {
fn status(&self) -> SyncStatus {
self.status.read().clone()
Expand Down

0 comments on commit 6e967d6

Please sign in to comment.