Skip to content

Commit d1c5443

Browse files
Update profiling/src/profiling/mod.rs
Co-authored-by: Bob Weinand <[email protected]>
1 parent a16ae44 commit d1c5443

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

profiling/src/profiling/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,8 @@ impl TimeCollector {
397397
sampling_distance,
398398
};
399399
let values_offset = [sum_value_offset, count_value_offset];
400-
match profile.add_upscaling_rule(&values_offset, "", "", upscaling_info) {
401-
Ok(_id) => {}
402-
Err(err) => {
403-
warn!("Failed to add upscaling rule for {metric_name}, {metric_name} reported will be wrong: {err}")
404-
}
400+
if let Err(err) = profile.add_upscaling_rule(&values_offset, "", "", upscaling_info) {
401+
warn!("Failed to add upscaling rule for {metric_name}, {metric_name} reported will be wrong: {err}")
405402
}
406403
}
407404
};

0 commit comments

Comments
 (0)