diff --git a/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java b/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java index db0be79b3..f9477d566 100644 --- a/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java +++ b/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java @@ -59,7 +59,7 @@ public void load() throws Exception { queryWrapper.eq("deleted", 0); List 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; @@ -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 list = - workspaceMap.computeIfAbsent(metricInfo.getWorkspace(), k -> new ArrayList<>()); + workspaceMap.computeIfAbsent(metricInfo.getWorkspace(), k -> new ArrayList<>()); list.add(metricInfo); } }