This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new ccf4736 for compatible. (#329)
ccf4736 is described below
commit ccf47365afbc6bd008eeb42aef79f93950fec8fb
Author: 赵延 <[email protected]>
AuthorDate: Sat Jun 5 17:31:11 2021 +0800
for compatible. (#329)
---
.../apache/dubbo/samples/basic/spi/CompatibleServiceDiscovery.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/dubbo-samples-spi-compatible/src/main/java/org/apache/dubbo/samples/basic/spi/CompatibleServiceDiscovery.java
b/dubbo-samples-spi-compatible/src/main/java/org/apache/dubbo/samples/basic/spi/CompatibleServiceDiscovery.java
index 4cfc665..64a00f2 100644
---
a/dubbo-samples-spi-compatible/src/main/java/org/apache/dubbo/samples/basic/spi/CompatibleServiceDiscovery.java
+++
b/dubbo-samples-spi-compatible/src/main/java/org/apache/dubbo/samples/basic/spi/CompatibleServiceDiscovery.java
@@ -54,6 +54,11 @@ public class CompatibleServiceDiscovery implements
ServiceDiscovery {
}
+ //For compatible, 3.0 service discovery need isDestroy to judgement.
+ public boolean isDestroy() {
+ return false;
+ }
+
@Override
public void unregister(ServiceInstance serviceInstance) throws
RuntimeException {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]