mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Fix bug with metrics scraping
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::metrics::LocalMetrics;
|
||||
use beacon_chain::{BeaconChain, BeaconChainTypes};
|
||||
use iron::typemap::Key;
|
||||
use prometheus::Registry;
|
||||
@@ -17,3 +18,9 @@ pub struct MetricsRegistryKey;
|
||||
impl Key for MetricsRegistryKey {
|
||||
type Value = Registry;
|
||||
}
|
||||
|
||||
pub struct LocalMetricsKey;
|
||||
|
||||
impl Key for LocalMetricsKey {
|
||||
type Value = LocalMetrics;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user