Lease.isExpired()方法判断过期时间去掉duration (#843)

Co-authored-by: weizhangqing <weizhangqing@icloudshield.com>
pull/847/head
jirong 2 years ago committed by GitHub
parent 2b1564efd2
commit 16542c8bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ public class Lease<T> {
}
public boolean isExpired(long additionalLeaseMs) {
return (evictionTimestamp > 0 || System.currentTimeMillis() > (lastUpdateTimestamp + duration + additionalLeaseMs));
return (evictionTimestamp > 0 || System.currentTimeMillis() > (lastUpdateTimestamp + additionalLeaseMs));
}
public long getRegistrationTimestamp() {

Loading…
Cancel
Save