From 102258e17c204b54daa48df702f454e210d2e435 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Mon, 16 Dec 2024 04:48:44 -0800 Subject: [PATCH] Fixed an incorrect warning that would show up with default settings --- Sources/WebPush/WebPushManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WebPush/WebPushManager.swift b/Sources/WebPush/WebPushManager.swift index b4d74f8..e7da5f0 100644 --- a/Sources/WebPush/WebPushManager.swift +++ b/Sources/WebPush/WebPushManager.swift @@ -379,7 +379,7 @@ public actor WebPushManager: Sendable { if expiration < Expiration.dropIfUndeliverable { logger.error("The message expiration must be greater than or equal to \(Expiration.dropIfUndeliverable) seconds.", metadata: ["expiration": "\(expiration)"]) - } else if expiration >= Expiration.recommendedMaximum { + } else if expiration > Expiration.recommendedMaximum { logger.warning("The message expiration should be less than \(Expiration.recommendedMaximum) seconds.", metadata: ["expiration": "\(expiration)"]) }