Fix bug with metrics scraping

This commit is contained in:
Paul Hauner
2019-05-28 18:05:52 +10:00
parent 345f7d5f18
commit 6d27c43666
2 changed files with 45 additions and 26 deletions

View File

@@ -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;
}