From 16542c8bc899b6cd7e6fb4099084963e36fae4dd Mon Sep 17 00:00:00 2001 From: jirong <42790011+w-jirong@users.noreply.github.com> Date: Tue, 25 Oct 2022 18:45:44 +0800 Subject: [PATCH] =?UTF-8?q?Lease.isExpired()=E6=96=B9=E6=B3=95=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4=E5=8E=BB=E6=8E=89?= =?UTF-8?q?duration=20(#843)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: weizhangqing --- .../src/main/java/cn/hippo4j/discovery/core/Lease.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippo4j-server/hippo4j-discovery/src/main/java/cn/hippo4j/discovery/core/Lease.java b/hippo4j-server/hippo4j-discovery/src/main/java/cn/hippo4j/discovery/core/Lease.java index 9dfc48f9..e604760b 100644 --- a/hippo4j-server/hippo4j-discovery/src/main/java/cn/hippo4j/discovery/core/Lease.java +++ b/hippo4j-server/hippo4j-discovery/src/main/java/cn/hippo4j/discovery/core/Lease.java @@ -88,7 +88,7 @@ public class Lease { } public boolean isExpired(long additionalLeaseMs) { - return (evictionTimestamp > 0 || System.currentTimeMillis() > (lastUpdateTimestamp + duration + additionalLeaseMs)); + return (evictionTimestamp > 0 || System.currentTimeMillis() > (lastUpdateTimestamp + additionalLeaseMs)); } public long getRegistrationTimestamp() {