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
5858 } catch let error {
5959 throw RPCError (
6060 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) . " ,
6262 cause: error
6363 )
6464 }
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ struct ProtobufCodeGeneratorTests {
405405
406406 // Default implementation of 'registerMethods(with:)'.
407407 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 {
409409 router.registerHandler(
410410 forMethod: Test_TestService.Method.Unary.descriptor,
411411 deserializer: GRPCProtobuf.ProtobufDeserializer<Test_TestInput>(),
@@ -666,14 +666,14 @@ struct ProtobufCodeGeneratorTests {
666666 /// > Source IDL Documentation:
667667 /// >
668668 /// > 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>
671671
672672 /// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
673673 ///
674674 /// - Parameters:
675675 /// - 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> ) {
677677 self.client = client
678678 }
679679
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ final class ProtobufCodingTests: XCTestCase {
6565 code: . invalidArgument,
6666 message:
6767 """
68- Can't deserialize to message of type TestMessage
68+ Can't deserialize to message of type TestMessage.
6969 """
7070 )
7171 )
You can’t perform that action at this time.
0 commit comments