Fix time test for node expiry times

This commit is contained in:
Luck 2017-08-22 16:30:46 +01:00
parent f45c0caa45
commit 069c76c53a
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -124,7 +124,7 @@ public class DataConstraints {
return true; return true;
}; };
public static final Predicate<Long> TIME_TEST = DateUtil::shouldExpire; public static final Predicate<Long> TIME_TEST = unixTime -> !DateUtil.shouldExpire(unixTime);
public static final Predicate<String> SERVER_NAME_TEST = s -> { public static final Predicate<String> SERVER_NAME_TEST = s -> {
if (s.length() <= 0 || s.length() > MAX_SERVER_LENGTH) { if (s.length() <= 0 || s.length() > MAX_SERVER_LENGTH) {