swift-server-community / APNSwift

📱HTTP/2 Apple Push Notification Service built with swift - send push notifications to iOS, iPadOS, tvOS, macOS, watchOS, visionOS, and Safari!
Apache License 2.0
698 stars 105 forks source link

'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly #183

Closed tciuro closed 12 months ago

tciuro commented 1 year ago

Describe the bug In public final class APNSClient<Decoder: APNSJSONDecoder, Encoder: APNSJSONEncoder>: APNSClientProtocol {..}:

        switch eventLoopGroupProvider {
        case .shared(let eventLoopGroup):
            httpClientEventLoopGroupProvider = .shared(eventLoopGroup)
        case .createNew:
            httpClientEventLoopGroupProvider = .createNew
        }

and Xcode 15.0, the following warning appears:

Warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly

To Reproduce Steps to reproduce the behavior: Compile a Vapor project with APNS.

Expected behavior No warning.

Screenshots

image

Platform: