Skip to content

Commit 8bf6a57

Browse files
authored
fix: change socketOptions to mutable to allow mutation on iOS and watchOS (#510)
1 parent a6cfe9f commit 8bf6a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ClientRuntime/Networking/Http/CRT/CRTClientEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class CRTClientEngine: HttpClientEngine {
4141
serverName: endpoint.host
4242
)
4343

44-
let socketOptions = SocketOptions(socketType: .stream)
44+
var socketOptions = SocketOptions(socketType: .stream)
4545
#if os(iOS) || os(watchOS)
4646
socketOptions.connectTimeoutMs = 30_000
4747
#endif

0 commit comments

Comments
 (0)