We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a16ae44 commit d1c5443Copy full SHA for d1c5443
1 file changed
profiling/src/profiling/mod.rs
@@ -397,11 +397,8 @@ impl TimeCollector {
397
sampling_distance,
398
};
399
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
- }
+ if let Err(err) = profile.add_upscaling_rule(&values_offset, "", "", upscaling_info) {
+ warn!("Failed to add upscaling rule for {metric_name}, {metric_name} reported will be wrong: {err}")
405
}
406
407
0 commit comments