Skip to content

Commit

Permalink
Updated HTTP call to use a deadline set to the distant future to use …
Browse files Browse the repository at this point in the history
…the configuration's timeouts directly
  • Loading branch information
dimitribouniol committed Dec 16, 2024
1 parent 39320ec commit f84556c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WebPush/WebPushManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public actor WebPushManager: Sendable {
request.body = .bytes(ByteBuffer(bytes: requestContent))

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

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

0 comments on commit f84556c

Please sign in to comment.