Skip to content

Commit 9603274

Browse files
authored
Enable Swift 6 language mode in GRPCCore (#2046)
Motivation: v2 should use Swift 6 language mode to take full advantage of the compilers data race checking. Modifications: - Enable Swift 6 language more for the code module - Add a bunch of missing explicit 'Sendable's Result: - Compiles with Swift 6 lang mode
1 parent 57f5771 commit 9603274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GRPCInterceptors/HookedWriter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal import GRPCCore
1717
internal import Tracing
1818

1919
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
20-
struct HookedWriter<Element>: RPCWriterProtocol {
20+
struct HookedWriter<Element: Sendable>: RPCWriterProtocol {
2121
private let writer: any RPCWriterProtocol<Element>
2222
private let beforeEachWrite: @Sendable () -> Void
2323
private let afterEachWrite: @Sendable () -> Void

0 commit comments

Comments
 (0)