浏览代码

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.
George Barnett 3 年之前
父节点
当前提交
39dde7af76
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift

+ 3 - 3
Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift

@@ -515,7 +515,7 @@ extension Grpc_Testing_TestServiceAsyncClientProtocol {
   public func streamingInputCall<RequestStream>(
     _ requests: RequestStream,
     callOptions: CallOptions? = nil
-  ) async throws -> Grpc_Testing_StreamingInputCallResponse where RequestStream: AsyncSequence, RequestStream.Element == Grpc_Testing_StreamingInputCallRequest {
+  ) async throws -> Grpc_Testing_StreamingInputCallResponse where RequestStream: AsyncSequence & Sendable, RequestStream.Element == Grpc_Testing_StreamingInputCallRequest {
     return try await self.performAsyncClientStreamingCall(
       path: Grpc_Testing_TestServiceClientMetadata.Methods.streamingInputCall.path,
       requests: requests,
@@ -539,7 +539,7 @@ extension Grpc_Testing_TestServiceAsyncClientProtocol {
   public func fullDuplexCall<RequestStream>(
     _ requests: RequestStream,
     callOptions: CallOptions? = nil
-  ) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
+  ) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence & Sendable, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
     return self.performAsyncBidirectionalStreamingCall(
       path: Grpc_Testing_TestServiceClientMetadata.Methods.fullDuplexCall.path,
       requests: requests,
@@ -563,7 +563,7 @@ extension Grpc_Testing_TestServiceAsyncClientProtocol {
   public func halfDuplexCall<RequestStream>(
     _ requests: RequestStream,
     callOptions: CallOptions? = nil
-  ) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
+  ) -> GRPCAsyncResponseStream<Grpc_Testing_StreamingOutputCallResponse> where RequestStream: AsyncSequence & Sendable, RequestStream.Element == Grpc_Testing_StreamingOutputCallRequest {
     return self.performAsyncBidirectionalStreamingCall(
       path: Grpc_Testing_TestServiceClientMetadata.Methods.halfDuplexCall.path,
       requests: requests,