Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jan 13, 2025
1 parent b0c18ae commit 01586fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ udeps:
cd $(DIR); cargo udeps --all-targets --all-features --workspace

clippy:
cd $(DIR); cargo clippy --all-targets --all-features --workspace -- -D warnings -D clippy::dbg-macro -A clippy::too-many-arguments
cd $(DIR); cargo clippy --all-targets --all-features --workspace -- -D warnings -D clippy::dbg-macro -A clippy::too-many-arguments \
-A dead_code

ensure-disk-quota:
bash ./scripts/free-disk-space.sh
Expand Down
8 changes: 7 additions & 1 deletion src/metric_engine/src/metric/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ pub struct MetricManager {
}

impl MetricManager {
pub fn new(storage: TimeMergeStorageRef) -> Self {
Self {
inner: Arc::new(Inner { storage }),
}
}

/// Populate metric ids from names.
/// If a name does not exist, it will be created on demand.
pub async fn populateMetricIds(&self, samples: &mut [Sample]) -> Result<()> {
pub async fn populate_metric_ids(&self, _samples: &mut [Sample]) -> Result<()> {
todo!()
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/metric_engine/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct Label {
pub struct Sample {
pub name: Vec<u8>,
pub lables: Vec<Label>,
pub timestamp: u64,
pub timestamp: i64,
pub value: f64,
/// hash of name
pub name_id: Option<MetricId>,
Expand Down

0 comments on commit 01586fb

Please sign in to comment.