Browse Source

send in resolve

main
Alexey Velikiy 3 years ago
parent
commit
c968646eb3
  1. 2
      src/datasources/mod.rs

2
src/datasources/mod.rs

@ -4,7 +4,7 @@ pub mod prometheus;
use crate::{metric::Metric, types::DatasourceConfig};
pub fn resolve(config: &DatasourceConfig) -> Box<dyn Metric + Sync> {
pub fn resolve(config: &DatasourceConfig) -> Box<dyn Metric + Sync + Send> {
match config {
DatasourceConfig::Grafana(cfg) => Box::new(grafana::Grafana::new(cfg)),
DatasourceConfig::Prometheus(cfg) => Box::new(prometheus::Prometheus::new(cfg)),

Loading…
Cancel
Save