Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kmd-fl committed Sep 23, 2024
1 parent e2a6414 commit e319fec
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions crates/peer-metrics/src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,36 +99,4 @@ pub fn add_info_metrics2(
("spell_version", spell_version),
]);
sub_registry.register("build", "Nox Info", info);
}

#[test]
fn test() {
let mut reg = Registry::default();
let info = NoxInfo {
versions: NoxVersions {
node_version: "0.1.0".to_string(),
air_version: "0.1.0".to_string(),
spell_version: "0.1.0".to_string(),
},
chain_info: ChainInfo {
peer_id: "0x123".to_string(),
http_endpoint: "http://localhost:8545".to_string(),
diamond_contract_address: "0x123".to_string(),
network_id: 1,
default_base_fee: Some(1),
default_priority_fee: Some(1),
ws_endpoint: "ws://localhost:8546".to_string(),
proof_poll_period_secs: 1,
min_batch_count: 1,
max_batch_count: 1,
max_proof_batch_size: 1,
epoch_end_window_secs: 1,
},
};
add_info_metrics(&mut reg, info);

let mut buf = String::new();

encode(&mut buf, &reg);
println!("{buf}");
}

0 comments on commit e319fec

Please sign in to comment.