File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public struct ProtobufDeserializer<Message: SwiftProtobuf.Message>: GRPCCore.Mes
58
58
} catch let error {
59
59
throw RPCError (
60
60
code: . invalidArgument,
61
- message: " Can't deserialize to message of type \( Message . self) ERR: \( error ) " ,
61
+ message: " Can't deserialize to message of type \( Message . self) . " ,
62
62
cause: error
63
63
)
64
64
}
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ struct ProtobufCodeGeneratorTests {
405
405
406
406
// Default implementation of 'registerMethods(with:)'.
407
407
extension Test_TestService.StreamingServiceProtocol {
408
- \( access) func registerMethods(with router: inout GRPCCore.RPCRouter) {
408
+ \( access) func registerMethods<Transport> (with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
409
409
router.registerHandler(
410
410
forMethod: Test_TestService.Method.Unary.descriptor,
411
411
deserializer: GRPCProtobuf.ProtobufDeserializer<Test_TestInput>(),
@@ -666,14 +666,14 @@ struct ProtobufCodeGeneratorTests {
666
666
/// > Source IDL Documentation:
667
667
/// >
668
668
/// > Service docs.
669
- \( access) struct Client: ClientProtocol {
670
- private let client: GRPCCore.GRPCClient
669
+ \( access) struct Client<Transport> : ClientProtocol where Transport: GRPCCore.ClientTransport {
670
+ private let client: GRPCCore.GRPCClient<Transport>
671
671
672
672
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
673
673
///
674
674
/// - Parameters:
675
675
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
676
- \( access) init(wrapping client: GRPCCore.GRPCClient) {
676
+ \( access) init(wrapping client: GRPCCore.GRPCClient<Transport> ) {
677
677
self.client = client
678
678
}
679
679
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ final class ProtobufCodingTests: XCTestCase {
65
65
code: . invalidArgument,
66
66
message:
67
67
"""
68
- Can't deserialize to message of type TestMessage
68
+ Can't deserialize to message of type TestMessage.
69
69
"""
70
70
)
71
71
)
You can’t perform that action at this time.
0 commit comments