diff --git a/README.md b/README.md index 222be0f..aa492e1 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Please check the [releases](https://github.com/mochidev/swift-webpush/releases) dependencies: [ .package( url: "https://github.com/mochidev/swift-webPush.git", - .upToNextMinor(from: "0.2.0") + .upToNextMinor(from: "0.2.1") ), ], ... 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)"]) }