for test
test-org/integration-module/pipeline/pr-rc This commit looks good Details

pull/48/head
prplV 2025-06-16 03:27:06 -04:00
parent 91acb6da23
commit eaa551be50
1 changed files with 12 additions and 1 deletions

View File

@ -79,7 +79,18 @@ pub trait LazyUnzipInstance {
impl LazyUnzipInstance for &[MetricInstance] { impl LazyUnzipInstance for &[MetricInstance] {
fn lazy_unzip(&self) -> HashMap<String, MetricMeta> { fn lazy_unzip(&self) -> HashMap<String, MetricMeta> {
self.iter().map(|obj| (obj.dola_id.to_string(), MetricMeta::new(&obj.name, &obj.desc, &obj.device, &obj.source))).collect() self.iter().map(
|obj|
(
obj.dola_id.to_string(),
MetricMeta::new(
&obj.name,
&obj.desc,
&obj.device,
&obj.source
)
)
).collect()
} }
} }