Skip to content

Commit

Permalink
fix: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
霄鸿 committed Feb 20, 2024
1 parent 6cf4231 commit 282dec9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void load() throws Exception {
queryWrapper.eq("deleted", 0);
List<MonitorInstance> instances = monitorInstanceService.list(queryWrapper);
instances.forEach(
instance -> sc.workspaceTenantMap.put(instance.getWorkspace(), instance.getTenant()));
instance -> sc.workspaceTenantMap.put(instance.getWorkspace(), instance.getTenant()));
ProdLog.info("[SuperCache][workspaceTenantMap] size: " + sc.workspaceTenantMap.size());
queryMetricInfoByPage(sc);
this.sc = sc;
Expand Down Expand Up @@ -98,9 +98,9 @@ private void queryMetricInfoByPage(SuperCache sc) {
}
map.put(metricInfo.getMetricTable(), metricInfo);
if (StringUtils.isNotBlank(metricInfo.getWorkspace())
&& !StringUtils.equals(metricInfo.getWorkspace(), "-")) {
&& !StringUtils.equals(metricInfo.getWorkspace(), "-")) {
List<MetricInfo> list =
workspaceMap.computeIfAbsent(metricInfo.getWorkspace(), k -> new ArrayList<>());
workspaceMap.computeIfAbsent(metricInfo.getWorkspace(), k -> new ArrayList<>());
list.add(metricInfo);
}
}
Expand Down

0 comments on commit 282dec9

Please sign in to comment.