Skip to content

Commit

Permalink
[INLONG-10152][Sort] fix defect.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnerzhang committed May 9, 2024
1 parent 7dc2d8c commit 93b09dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,8 @@ private MetricOption(
public Map<String, String> getLabels() {
return labels;
}

public Set<String> getIpPortSet() {
return ipPortSet;
}

public HashSet<String> getIpPortSetAsHashSet() {

public HashSet<String> getIpPortSet() {
return new HashSet<>(ipPortSet);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public SinkMetricData(MetricOption option, MetricGroup metricGroup) {
}

if (option.getIpPorts().isPresent()) {
AuditOperator.getInstance().setAuditProxy(option.getIpPortSetAsHashSet());
AuditOperator.getInstance().setAuditProxy(option.getIpPortSet());
this.auditOperator = AuditOperator.getInstance();
this.auditKeys = option.getInlongAuditKeys();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public SourceMetricData(MetricOption option, MetricGroup metricGroup) {
}

if (option.getIpPorts().isPresent()) {
AuditOperator.getInstance().setAuditProxy(option.getIpPortSetAsHashSet());
AuditOperator.getInstance().setAuditProxy(option.getIpPortSet());
this.auditOperator = AuditOperator.getInstance();
this.auditKeys = option.getInlongAuditKeys();
}
Expand All @@ -114,7 +114,7 @@ public SourceMetricData(MetricOption option) {
this.labels = option.getLabels();

if (option.getIpPorts().isPresent()) {
AuditOperator.getInstance().setAuditProxy(option.getIpPortSetAsHashSet());
AuditOperator.getInstance().setAuditProxy(option.getIpPortSet());
this.auditOperator = AuditOperator.getInstance();
this.auditKeys = option.getInlongAuditKeys();
}
Expand Down

0 comments on commit 93b09dd

Please sign in to comment.