代码优化

1.x
tanghc 5 years ago
parent 9525e2bbba
commit c274b6508f
  1. 2
      sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/DefaultEnvGrayManager.java

@ -40,7 +40,7 @@ public class DefaultEnvGrayManager implements EnvGrayManager {
if (serviceId == null || nameVersion == null) { if (serviceId == null || nameVersion == null) {
return null; return null;
} }
boolean opened = instanceIdServiceIdMap.values().contains(serviceId); boolean opened = instanceIdServiceIdMap.containsValue(serviceId);
// 没有开启灰度 // 没有开启灰度
if (!opened) { if (!opened) {
return null; return null;

Loading…
Cancel
Save