Skip to content

Commit

Permalink
Fix #2163
Browse files Browse the repository at this point in the history
Replace LinkedList with ArrayList
  • Loading branch information
henrybear327 committed Feb 14, 2024
1 parent c9edaaa commit 0a10449
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import io.prometheus.client.exporter.MetricsServlet;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -35,7 +35,7 @@ public class MetricsSystem implements Closeable {
private final String name;
private final MetricRegistry metricRegistry;
private HashMap<String, MetricsSource> metricSources = new HashMap<>();
private List<Reporter> metricsReporters = new LinkedList<>();
private List<Reporter> metricsReporters = new ArrayList<>();
private CollectorRegistry prometheusRegistry;

public MetricsSystem() {
Expand Down

0 comments on commit 0a10449

Please sign in to comment.