Skip to content

Commit e8dcd4e

Browse files
authored
chore: fix compiler warnings in clientruntime (#386)
1 parent 54820ee commit e8dcd4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class CRTClientEngine: HttpClientEngine {
3737
logger.error("Server name was not able to be set in TLS Connection Options. TLS Negotiation will fail.")
3838
logger.error("Error: \(err.localizedDescription)")
3939
}
40-
var socketOptions = SocketOptions(socketType: .stream)
40+
let socketOptions = SocketOptions(socketType: .stream)
4141
#if os(iOS) || os(watchOS)
4242
socketOptions.connectTimeoutMs = 30_000
4343
#endif

Packages/ClientRuntime/Sources/Networking/Http/Middlewares/ContentMD5Middleware.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public struct ContentMD5Middleware<OperationStackOutput: HttpResponseBinding,
2828
return next.handle(context: context, input: input)
2929
}
3030
input.headers.update(name: "Content-MD5", value: base64Encoded)
31-
case .stream(let stream):
31+
case .stream:
3232
guard let logger = context.getLogger() else {
3333
return next.handle(context: context, input: input)
3434
}

0 commit comments

Comments
 (0)