Skip to content

Commit

Permalink
Remove unused multi callback (#2107)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Sep 12, 2024
1 parent eb0d997 commit 921f253
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions opentelemetry-sdk/src/metrics/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ type GenericCallback = Arc<dyn Fn() + Send + Sync>;
struct PipelineInner {
aggregations: HashMap<Scope, Vec<InstrumentSync>>,
callbacks: Vec<GenericCallback>,
multi_callbacks: Vec<Option<GenericCallback>>,
}

impl fmt::Debug for PipelineInner {
Expand Down Expand Up @@ -109,11 +108,6 @@ impl SdkProducer for Pipeline {
cb();
}

for mcb in inner.multi_callbacks.iter().flatten() {
// TODO consider parallel multi callbacks.
mcb();
}

rm.resource = self.resource.clone();
if inner.aggregations.len() > rm.scope_metrics.len() {
rm.scope_metrics
Expand Down

0 comments on commit 921f253

Please sign in to comment.