From 923a98eb66aa74aaa1094d1efcf110ff6ee4246c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 15 Jul 2024 23:32:50 +0000 Subject: [PATCH] partially revert dc18f89c0b for now Signed-off-by: Jason Volk --- src/service/sending/resolve.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/service/sending/resolve.rs b/src/service/sending/resolve.rs index 8b6bfc95..e7a71af1 100644 --- a/src/service/sending/resolve.rs +++ b/src/service/sending/resolve.rs @@ -443,7 +443,9 @@ impl crate::globals::resolver::Resolver { impl CachedDest { #[inline] #[must_use] - pub fn valid(&self) -> bool { self.expire > SystemTime::now() } + pub fn valid(&self) -> bool { true } + + //pub fn valid(&self) -> bool { self.expire > SystemTime::now() } #[must_use] pub(crate) fn default_expire() -> SystemTime { rand::timepoint_secs(60 * 60 * 18..60 * 60 * 36) } @@ -452,7 +454,9 @@ impl CachedDest { impl CachedOverride { #[inline] #[must_use] - pub fn valid(&self) -> bool { self.expire > SystemTime::now() } + pub fn valid(&self) -> bool { true } + + //pub fn valid(&self) -> bool { self.expire > SystemTime::now() } #[must_use] pub(crate) fn default_expire() -> SystemTime { rand::timepoint_secs(60 * 60 * 6..60 * 60 * 12) }