File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/pojo Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1717
1818package com .tencent .polaris .client .pojo ;
1919
20- import com .google .protobuf .StringValue ;
2120import com .google .protobuf .UInt32Value ;
2221import com .tencent .polaris .api .pojo .CircuitBreakerStatus ;
2322import com .tencent .polaris .api .pojo .DetectResult ;
3130import java .util .Collections ;
3231import java .util .Map ;
3332import java .util .Objects ;
34- import java .util .Optional ;
3533
3634/**
3735 * 通过PB对象封装的实例信息
@@ -80,8 +78,7 @@ public int hashCode() {
8078
8179 @ Override
8280 public String getNamespace () {
83- return Optional .of (instance ).map (ServiceProto .Instance ::getNamespace ).
84- map (StringValue ::getValue ).orElse (serviceKey .getNamespace ());
81+ return serviceKey .getNamespace ();
8582 }
8683
8784 @ Override
You can’t perform that action at this time.
0 commit comments