From cc3456c5d95481221fc32b8bc4b40c5c0e74333d Mon Sep 17 00:00:00 2001 From: Adam Spofford Date: Thu, 22 Feb 2024 15:40:03 -0800 Subject: [PATCH] Remove abs check --- ic-agent/src/agent/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/ic-agent/src/agent/mod.rs b/ic-agent/src/agent/mod.rs index 6e0d265e..6a7d6b88 100644 --- a/ic-agent/src/agent/mod.rs +++ b/ic-agent/src/agent/mod.rs @@ -882,7 +882,6 @@ impl Agent { let time = lookup_time(cert)?; if (OffsetDateTime::now_utc() - OffsetDateTime::from_unix_timestamp_nanos(time.into()).unwrap()) - .abs() > self.ingress_expiry { Err(AgentError::CertificateOutdated(self.ingress_expiry))