代码优化

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) {
return null;
}
boolean opened = instanceIdServiceIdMap.values().contains(serviceId);
boolean opened = instanceIdServiceIdMap.containsValue(serviceId);
// 没有开启灰度
if (!opened) {
return null;

Loading…
Cancel
Save