Skip to content

Commit

Permalink
[Improve] Delete duplicate code (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshenghang authored Jan 10, 2025
1 parent 7084272 commit 894e9dc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public List<JobMetrics> getMetricsByJobEngineId(@NonNull String jobEngineId) {
return new ArrayList<>();
}

JsonNode jsonNode =
JsonUtils.stringToJsonNode(seaTunnelEngineProxy.getMetricsContent(jobEngineId));
JsonNode jsonNode = JsonUtils.stringToJsonNode(metricsContent);
LinkedHashMap<Integer, JobMetrics> metricsMap =
extractMetrics(jobPipelineStatus, jsonNode);
return Arrays.asList(metricsMap.values().toArray(new JobMetrics[0]));
Expand Down

0 comments on commit 894e9dc

Please sign in to comment.