Skip to content

Commit 263531f

Browse files
committed
don't make broker initializer async
technically it needs to be in order to compile in Swift 6 language mode but, it makes integration with SwiftUI difficult
1 parent 370e511 commit 263531f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftOCA/OCA/ConnectionBroker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public actor OcaConnectionBroker {
285285
///
286286
/// - Parameter connectionOptions: Configuration options for connections created by this broker.
287287
/// Defaults to standard options if not specified.
288-
public init(connectionOptions: Ocp1ConnectionOptions = .init()) async {
288+
public init(connectionOptions: Ocp1ConnectionOptions = .init()) {
289289
_connectionOptions = connectionOptions
290290
var browsers = [OcaNetworkAdvertisingServiceType: BrowserMonitor]()
291291
for serviceType in [OcaNetworkAdvertisingServiceType.tcp,

0 commit comments

Comments
 (0)