Skip to content

Commit 990c7a6

Browse files
crobert-1XinRanZhAWS
authored andcommitted
[processor/deltotocumulative] Fix lint failure (open-telemetry#31685)
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> open-telemetry#31488 was recently merged and has broken `build-and-test` for all builds due to a lint failure. It looks like two PRs were worked on in parallel, the aforementioned one, as well as open-telemetry#31625. open-telemetry#31625 renamed `exp` to `stale`, but the most recently merged PR was referencing the original `exp` variable. This is an unreleased component, and is simply fixing a bug, so I don't think this should have a changelog.
1 parent 1ccd1fc commit 990c7a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processor/deltatocumulativeprocessor/processor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func newProcessor(cfg *Config, log *zap.Logger, next consumer.Metrics) *Processo
5757
}
5858
if cfg.MaxStreams > 0 {
5959
lim := streams.Limit(dps, cfg.MaxStreams)
60-
if proc.exp != nil {
61-
lim.Evictor = proc.exp
60+
if proc.stale != nil {
61+
lim.Evictor = proc.stale
6262
}
6363
dps = lim
6464
}

0 commit comments

Comments
 (0)