Skip to content

Commit f6a1b9f

Browse files
committed
Conditionally marked ContiguousBytes as Sendable.
1 parent d50f20d commit f6a1b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GRPCProtobuf/ContiguousBytesAdapter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ struct ContiguousBytesAdapter<
6464
}
6565
}
6666

67-
@available(*, unavailable)
68-
extension ContiguousBytesAdapter: Sendable {}
67+
@available(gRPCSwiftProtobuf 2.0, *)
68+
extension ContiguousBytesAdapter: Sendable where Bytes: Sendable { }

0 commit comments

Comments
 (0)