Skip to content

Commit e58c13c

Browse files
committed
nn
1 parent b21fa7b commit e58c13c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/internal/state/AsynchronousMetricStorage.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,6 @@ public void setEnabled(boolean enabled) {
321321
} else {
322322
aggregator = Aggregator.drop();
323323

324-
if (memoryMode == REUSABLE_DATA) {
325-
aggregatorHandles.forEach(
326-
(attributes, handle) -> {
327-
handle.aggregateThenMaybeReset(0, 0, Attributes.empty(), /* reset= */ true);
328-
reusableHandlesPool.returnObject(handle);
329-
});
330-
lastPoints.forEach(pointReleaser);
331-
}
332324
aggregatorHandles.clear();
333325
lastPoints.clear();
334326
}

0 commit comments

Comments
 (0)