Skip to content

Commit 90c01e6

Browse files
committed
Swift 6 language mode fix: _CFSocketWrapper initializer is no longer async
1 parent 3556a63 commit 90c01e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftOCADevice/OCP.1/Backend/CF/Ocp1CFDeviceEndpoint.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ public final class Ocp1CFStreamDeviceEndpoint: Ocp1CFDeviceEndpoint,
179179
}
180180

181181
private func makeSocketAndListen() async throws -> _CFSocketWrapper {
182-
try await _CFSocketWrapper(address: address, type: SwiftOCA.SOCK_STREAM, options: .server)
182+
try _CFSocketWrapper(address: address, type: SwiftOCA.SOCK_STREAM, options: .server)
183183
}
184184

185185
private func makeNotificationSocket() async throws -> _CFSocketWrapper {
186-
try await _CFSocketWrapper(address: address, type: SwiftOCA.SOCK_DGRAM, options: .server)
186+
try _CFSocketWrapper(address: address, type: SwiftOCA.SOCK_DGRAM, options: .server)
187187
}
188188

189189
#if canImport(dnssd)
@@ -255,7 +255,7 @@ public class Ocp1CFDatagramDeviceEndpoint: Ocp1CFDeviceEndpoint,
255255
}
256256

257257
private func makeSocket() async throws -> _CFSocketWrapper {
258-
let socket = try await _CFSocketWrapper(
258+
let socket = try _CFSocketWrapper(
259259
address: address,
260260
type: SwiftOCA.SOCK_DGRAM,
261261
options: .server

0 commit comments

Comments
 (0)