Skip to content

Commit f84556c

Browse files
Updated HTTP call to use a deadline set to the distant future to use the configuration's timeouts directly
1 parent 39320ec commit f84556c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebPush/WebPushManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public actor WebPushManager: Sendable {
394394
request.body = .bytes(ByteBuffer(bytes: requestContent))
395395

396396
/// Send the request to the push endpoint.
397-
let response = try await httpClient.execute(request, deadline: .now() + .seconds(2), logger: logger)
397+
let response = try await httpClient.execute(request, deadline: .distantFuture, logger: logger)
398398

399399
/// Check the response and determine if the subscription should be removed from our records, or if the notification should just be skipped.
400400
switch response.status {

0 commit comments

Comments
 (0)