Skip to content

Commit

Permalink
add index cache layer
Browse files Browse the repository at this point in the history
  • Loading branch information
zealchen committed Jan 25, 2025
1 parent 07e454c commit 5bf5060
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/metric_engine/src/index/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,13 @@ impl TagIndexCache {
let mut tag_values = tag_values.clone();
remove_default_tag(&mut tag_names, &mut tag_values);
tag_names
.iter()
.zip(tag_values.iter())
.into_iter()
.zip(tag_values.into_iter())
.for_each(|(name, value)| {
cache_guard
.entry(name.clone())
.entry(name)
.or_default()
.entry(value.clone())
.entry(value)
.or_default()
.entry(*metric_id)
.or_default()
Expand Down

0 comments on commit 5bf5060

Please sign in to comment.