Skip to content

Commit

Permalink
Add missing Dispatch import (#223)
Browse files Browse the repository at this point in the history
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 <lukasa@apple.com>
  • Loading branch information
glbrntt and Lukasa authored Jan 31, 2025
1 parent 6d8ce3e commit 3c39406
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/NIOTransportServices/NIOTSSingletons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//

#if canImport(Network)
import Dispatch
import NIOCore

@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//

#if canImport(Network)
import Atomics
import Foundation
import NIOCore
import NIOConcurrencyHelpers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import XCTest
import Network
import NIOCore
import NIOFoundationCompat
import NIOTransportServices
import Foundation

Expand Down

0 comments on commit 3c39406

Please sign in to comment.