chore: move metrics dep to dev-dep (#694)

This commit is contained in:
Matthias Seitz
2023-01-03 15:11:51 +01:00
committed by GitHub
parent 65bc3cb7b8
commit 6311915ead
2 changed files with 3 additions and 4 deletions

View File

@ -13,10 +13,10 @@ proc-macro = true
proc-macro2 = "1.0"
syn = { version = "1.0", features = ["extra-traits"] }
quote = "1.0"
metrics = "0.20.1"
regex = "1.6.0"
once_cell = "1.15.0"
[dev-dependencies]
metrics = "0.20.1"
trybuild = "1.0"
serial_test = "0.10"

View File

@ -1,11 +1,10 @@
use std::{collections::HashMap, sync::Mutex};
use metrics::{
set_recorder, Counter, Gauge, Histogram, Key, KeyName, Recorder, SharedString, Unit,
};
use once_cell::sync::Lazy;
use reth_metrics_derive::Metrics;
use serial_test::serial;
use std::{collections::HashMap, sync::Mutex};
#[allow(dead_code)]
#[derive(Metrics)]
@ -23,7 +22,7 @@ struct CustomMetrics {
histo: Histogram,
}
static RECORDER: Lazy<TestRecorder> = Lazy::new(|| TestRecorder::new());
static RECORDER: Lazy<TestRecorder> = Lazy::new(TestRecorder::new);
#[test]
#[serial]