Skip to content

Commit

Permalink
fix: post-rebase tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Feb 24, 2022
1 parent 735ffce commit bfc54bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .integration/tests/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

use crate::wait_until;

use snarkos_integration::{ClientNode, TestNode};
use snarkos_metrics as metrics;
use snarkos_testing::{ClientNode, TestNode};

use pea2pea::Pea2Pea;

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ required-features = ["console"]
default = [ "console", "rpc" ]
console = [ "crossterm", "tui" ]
cuda = [ "snarkvm/cuda" ]
prometheus = [ "snarkos-metrics/prometheus" ]
prometheus = [ "snarkos-metrics/prometheus", "snarkos-network/prometheus" ]
rpc = [ "snarkos-rpc" ]
test = [ "snarkos-metrics/test" ]
test = [ "snarkos-metrics/test", "snarkos-network/test" ]

[dependencies.aleo-std]
version = "0.1.6"
Expand Down
8 changes: 7 additions & 1 deletion network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ version = "1"
path = "../environment"
version = "2.0.2"

[dependencies.snarkos-metrics]
path = "../metrics"
version = "2.0.2"
optional = true

[dependencies.snarkos-storage]
path = "../storage"
version = "2.0.2"
Expand Down Expand Up @@ -76,4 +81,5 @@ version = "0.1"

[features]
default = [ ]
test = [ ]
prometheus = [ "snarkos-metrics/prometheus" ]
test = [ "snarkos-metrics/test" ]
2 changes: 1 addition & 1 deletion snarkos/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ impl<N: Network, E: Environment> Server<N, E> {
fn initialize_metrics(ledger: LedgerReader<N>) {
#[cfg(not(feature = "test"))]
if let Some(handler) = snarkos_metrics::initialize() {
E::tasks().append(handler);
E::resources().register_task(handler);
}

// Set the block height as it could already be non-zero.
Expand Down

0 comments on commit bfc54bd

Please sign in to comment.