You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by al...@apache.org on 2021/06/05 09:31:18 UTC

[dubbo-samples] branch master updated: for compatible. (#329)

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: 赵延 <10...@qq.com>
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: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org