|
|
@ -59,7 +59,7 @@ impl Default for MetricResult { |
|
|
|
#[async_trait] |
|
|
|
#[async_trait] |
|
|
|
pub trait Metric { |
|
|
|
pub trait Metric { |
|
|
|
|
|
|
|
|
|
|
|
fn boxed_clone(&self) -> Box<dyn Metric + Sync>; |
|
|
|
fn boxed_clone(&self) -> Box<dyn Metric + Sync + Send>; |
|
|
|
|
|
|
|
|
|
|
|
// (to - from) / step < 10000
|
|
|
|
// (to - from) / step < 10000
|
|
|
|
async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result<MetricResult>; |
|
|
|
async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result<MetricResult>; |
|
|
|