You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by yi...@apache.org on 2019/03/19 11:32:53 UTC
[incubator-dubbo] branch master updated: Improve the checking of
lease id. #3684 (#3692)
This is an automated email from the ASF dual-hosted git repository.
yiji pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 32d59f7 Improve the checking of lease id. #3684 (#3692)
32d59f7 is described below
commit 32d59f7f22b0e61617c7e49dde3b6aa5ba41523b
Author: Huxing Zhang <hu...@gmail.com>
AuthorDate: Tue Mar 19 19:32:46 2019 +0800
Improve the checking of lease id. #3684 (#3692)
It looks good.
---
.../java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java b/dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java
index c7f472d..b122f53 100644
--- a/dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java
+++ b/dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java
@@ -550,7 +550,7 @@ public class JEtcdClientWrapper {
try {
cancelKeepAlive = true;
- if (globalLeaseId > 0) {
+ if (globalLeaseId != 0) {
revokeLease(this.globalLeaseId);
}
} catch (Exception e) {