File tree 1 file changed +1
-4
lines changed
polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/pojo
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package com .tencent .polaris .client .pojo ;
19
19
20
- import com .google .protobuf .StringValue ;
21
20
import com .google .protobuf .UInt32Value ;
22
21
import com .tencent .polaris .api .pojo .CircuitBreakerStatus ;
23
22
import com .tencent .polaris .api .pojo .DetectResult ;
31
30
import java .util .Collections ;
32
31
import java .util .Map ;
33
32
import java .util .Objects ;
34
- import java .util .Optional ;
35
33
36
34
/**
37
35
* 通过PB对象封装的实例信息
@@ -80,8 +78,7 @@ public int hashCode() {
80
78
81
79
@ Override
82
80
public String getNamespace () {
83
- return Optional .of (instance ).map (ServiceProto .Instance ::getNamespace ).
84
- map (StringValue ::getValue ).orElse (serviceKey .getNamespace ());
81
+ return serviceKey .getNamespace ();
85
82
}
86
83
87
84
@ Override
You can’t perform that action at this time.
0 commit comments