Skip to content

Commit 39dde7a

Browse files
authored
Update generated code for interop tests (#1434)
Motivation: Interop tests are using outdated generated code which produces sendability warnings. Modifications: - Update generated code for interop tests. Result: Fewer warnings.
1 parent d0818f9 commit 39dde7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ extension Grpc_Testing_TestServiceAsyncClientProtocol {
515515
public func streamingInputCall<RequestStream>(
516516
_ requests: RequestStream,
517517
callOptions: CallOptions? = nil
518-
) async throws -> Grpc_Testing_StreamingInputCallResponse where RequestStream: AsyncSequence, RequestStream.Element == Grpc_Testing_StreamingInputCallRequest {
518+
) async throws -> Grpc_Testing_StreamingInputCallResponse where RequestStream: AsyncSequence & Sendable, RequestStream.Element == Grpc_Testing_StreamingInputCallRequest {
519519
return try await self.performAsyncClientStreamingCall(
520520
path: Grpc_Testing_TestServiceClientMetadata.Methods.streamingInputCall.path,
521521
requests: requests,
@@ -539,7 +539,7 @@ extension Grpc_Testing_TestServiceAsyncClientProtocol {
539539
public func fullDuplexCall<RequestStream>(
540540
_ requests: RequestStream,
541541
callOptions: CallOptions? = nil
542-
) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
542+
) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence & Sendable, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
543543
return self.performAsyncBidirectionalStreamingCall(
544544
path: Grpc_Testing_TestServiceClientMetadata.Methods.fullDuplexCall.path,
545545
requests: requests,
@@ -563,7 +563,7 @@ extension Grpc_Testing_TestServiceAsyncClientProtocol {
563563
public func halfDuplexCall<RequestStream>(
564564
_ requests: RequestStream,
565565
callOptions: CallOptions? = nil
566-
) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
566+
) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence & Sendable, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
567567
return self.performAsyncBidirectionalStreamingCall(
568568
path: Grpc_Testing_TestServiceClientMetadata.Methods.halfDuplexCall.path,
569569
requests: requests,

0 commit comments

Comments
 (0)