@ -118,7 +118,7 @@ impl Metric for Grafana {
Ok(r)
}
fn boxed_clone(&self) -> Box<dyn Metric + Sync> {
fn boxed_clone(&self) -> Box<dyn Metric + Sync + Send> {
return Box::new(self.clone());
@ -63,7 +63,7 @@ impl Metric for Prometheus {
return prometheus::parse_result(value);
@ -90,7 +90,7 @@ impl Metric for Influx {
return parse_result(value);
@ -98,7 +98,7 @@ impl Metric for Prometheus {
@ -59,7 +59,7 @@ impl Default for MetricResult {
#[async_trait]
pub trait Metric {
fn boxed_clone(&self) -> Box<dyn Metric + Sync>;
fn boxed_clone(&self) -> Box<dyn Metric + Sync + Send>;
// (to - from) / step < 10000
async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result<MetricResult>;