Skip to content

Commit b4c94c6

Browse files
authored
feat: collect protecte (#345)
1 parent 8d75056 commit b4c94c6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/io/getunleash/impactmetrics/CounterImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void inc(long value, Map<String, String> labels) {
3232
values.compute(key, (k, current) -> (current == null ? 0L : current) + value);
3333
}
3434

35-
public CollectedMetric collect() {
35+
CollectedMetric collect() {
3636
List<MetricSample> samples = new ArrayList<>();
3737

3838
for (String key : values.keySet()) {

src/main/java/io/getunleash/impactmetrics/GaugeImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void dec(long value, Map<String, String> labels) {
5656
values.compute(key, (k, current) -> (current == null ? 0L : current) - value);
5757
}
5858

59-
public CollectedMetric collect() {
59+
CollectedMetric collect() {
6060
List<MetricSample> samples = new ArrayList<>();
6161

6262
for (String key : values.keySet()) {

src/main/java/io/getunleash/impactmetrics/HistogramImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void restore(BucketMetricSample sample) {
7070
values.put(key, data);
7171
}
7272

73-
public CollectedMetric collect() {
73+
CollectedMetric collect() {
7474
List<MetricSample> samples = new ArrayList<>();
7575

7676
for (Map.Entry<String, HistogramData> entry : values.entrySet()) {

0 commit comments

Comments
 (0)