From 3c394067c08d1225ba8442e9cffb520ded417b64 Mon Sep 17 00:00:00 2001 From: George Barnett Date: Fri, 31 Jan 2025 10:26:33 +0000 Subject: [PATCH] Add missing Dispatch import (#223) Motivation: Dispatch wasn't imported in `NIOTSSingletons.swift` where `.default` was used for the default QoS. This causes some build issues. Modifications: - Add missing Dispatch import Result: Fewer build issues --------- Co-authored-by: Cory Benfield --- Sources/NIOTransportServices/NIOTSSingletons.swift | 1 + .../NIOTransportServices/StateManagedNWConnectionChannel.swift | 1 + .../NIOTransportServicesTests/NIOTSConnectionChannelTests.swift | 1 + 3 files changed, 3 insertions(+) diff --git a/Sources/NIOTransportServices/NIOTSSingletons.swift b/Sources/NIOTransportServices/NIOTSSingletons.swift index e170891..770f72c 100644 --- a/Sources/NIOTransportServices/NIOTSSingletons.swift +++ b/Sources/NIOTransportServices/NIOTSSingletons.swift @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #if canImport(Network) +import Dispatch import NIOCore @available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *) diff --git a/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift b/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift index 21fd99f..045fccd 100644 --- a/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift +++ b/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #if canImport(Network) +import Atomics import Foundation import NIOCore import NIOConcurrencyHelpers diff --git a/Tests/NIOTransportServicesTests/NIOTSConnectionChannelTests.swift b/Tests/NIOTransportServicesTests/NIOTSConnectionChannelTests.swift index d813a1b..f9cbe1b 100644 --- a/Tests/NIOTransportServicesTests/NIOTSConnectionChannelTests.swift +++ b/Tests/NIOTransportServicesTests/NIOTSConnectionChannelTests.swift @@ -16,6 +16,7 @@ import XCTest import Network import NIOCore +import NIOFoundationCompat import NIOTransportServices import Foundation