|
|
@@ -105,7 +105,9 @@ final class ProtobufCodeGeneratorTests: XCTestCase {
|
|
|
internal func sayHello<R>(
|
|
|
request: ClientRequest.Single<Hello_World_HelloRequest>,
|
|
|
options: CallOptions = .defaults,
|
|
|
- _ body: @Sendable @escaping (ClientResponse.Single<Hello_World_HelloReply>) async throws -> R
|
|
|
+ _ body: @Sendable @escaping (ClientResponse.Single<Hello_World_HelloReply>) async throws -> R = {
|
|
|
+ try $0.message
|
|
|
+ }
|
|
|
) async throws -> R where R: Sendable {
|
|
|
try await self.sayHello(
|
|
|
request: request,
|
|
|
@@ -132,7 +134,9 @@ final class ProtobufCodeGeneratorTests: XCTestCase {
|
|
|
serializer: some MessageSerializer<Hello_World_HelloRequest>,
|
|
|
deserializer: some MessageDeserializer<Hello_World_HelloReply>,
|
|
|
options: CallOptions = .defaults,
|
|
|
- _ body: @Sendable @escaping (ClientResponse.Single<Hello_World_HelloReply>) async throws -> R
|
|
|
+ _ body: @Sendable @escaping (ClientResponse.Single<Hello_World_HelloReply>) async throws -> R = {
|
|
|
+ try $0.message
|
|
|
+ }
|
|
|
) async throws -> R where R: Sendable {
|
|
|
try await self.client.unary(
|
|
|
request: request,
|
|
|
@@ -374,7 +378,9 @@ final class ProtobufCodeGeneratorTests: XCTestCase {
|
|
|
package func sayHello<R>(
|
|
|
request: ClientRequest.Single<HelloRequest>,
|
|
|
options: CallOptions = .defaults,
|
|
|
- _ body: @Sendable @escaping (ClientResponse.Single<HelloReply>) async throws -> R
|
|
|
+ _ body: @Sendable @escaping (ClientResponse.Single<HelloReply>) async throws -> R = {
|
|
|
+ try $0.message
|
|
|
+ }
|
|
|
) async throws -> R where R: Sendable {
|
|
|
try await self.sayHello(
|
|
|
request: request,
|
|
|
@@ -401,7 +407,9 @@ final class ProtobufCodeGeneratorTests: XCTestCase {
|
|
|
serializer: some MessageSerializer<HelloRequest>,
|
|
|
deserializer: some MessageDeserializer<HelloReply>,
|
|
|
options: CallOptions = .defaults,
|
|
|
- _ body: @Sendable @escaping (ClientResponse.Single<HelloReply>) async throws -> R
|
|
|
+ _ body: @Sendable @escaping (ClientResponse.Single<HelloReply>) async throws -> R = {
|
|
|
+ try $0.message
|
|
|
+ }
|
|
|
) async throws -> R where R: Sendable {
|
|
|
try await self.client.unary(
|
|
|
request: request,
|