Skip to content

Commit 43fd4b9

Browse files
committed
Update generated code
1 parent 706519c commit 43fd4b9

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

Examples/echo/Sources/Generated/echo.grpc.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ extension Echo_Echo {
347347

348348
// Default implementation of 'registerMethods(with:)'.
349349
extension Echo_Echo.StreamingServiceProtocol {
350-
internal func registerMethods(with router: inout GRPCCore.RPCRouter) {
350+
internal func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
351351
router.registerHandler(
352352
forMethod: Echo_Echo.Method.Get.descriptor,
353353
deserializer: GRPCProtobuf.ProtobufDeserializer<Echo_EchoRequest>(),
@@ -600,14 +600,14 @@ extension Echo_Echo {
600600
/// The ``Client`` provides an implementation of ``ClientProtocol`` which wraps
601601
/// a `GRPCCore.GRPCCClient`. The underlying `GRPCClient` provides the long-lived
602602
/// means of communication with the remote peer.
603-
internal struct Client: ClientProtocol {
604-
private let client: GRPCCore.GRPCClient
603+
internal struct Client<Transport>: ClientProtocol where Transport: GRPCCore.ClientTransport {
604+
private let client: GRPCCore.GRPCClient<Transport>
605605

606606
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
607607
///
608608
/// - Parameters:
609609
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
610-
internal init(wrapping client: GRPCCore.GRPCClient) {
610+
internal init(wrapping client: GRPCCore.GRPCClient<Transport>) {
611611
self.client = client
612612
}
613613

Examples/error-details/Sources/Generated/helloworld.grpc.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ extension Helloworld_Greeter {
156156

157157
// Default implementation of 'registerMethods(with:)'.
158158
extension Helloworld_Greeter.StreamingServiceProtocol {
159-
internal func registerMethods(with router: inout GRPCCore.RPCRouter) {
159+
internal func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
160160
router.registerHandler(
161161
forMethod: Helloworld_Greeter.Method.SayHello.descriptor,
162162
deserializer: GRPCProtobuf.ProtobufDeserializer<Helloworld_HelloRequest>(),
@@ -246,14 +246,14 @@ extension Helloworld_Greeter {
246246
/// > Source IDL Documentation:
247247
/// >
248248
/// > The greeting service definition.
249-
internal struct Client: ClientProtocol {
250-
private let client: GRPCCore.GRPCClient
249+
internal struct Client<Transport>: ClientProtocol where Transport: GRPCCore.ClientTransport {
250+
private let client: GRPCCore.GRPCClient<Transport>
251251

252252
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
253253
///
254254
/// - Parameters:
255255
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
256-
internal init(wrapping client: GRPCCore.GRPCClient) {
256+
internal init(wrapping client: GRPCCore.GRPCClient<Transport>) {
257257
self.client = client
258258
}
259259

Examples/hello-world/Sources/Generated/helloworld.grpc.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ extension Helloworld_Greeter {
156156

157157
// Default implementation of 'registerMethods(with:)'.
158158
extension Helloworld_Greeter.StreamingServiceProtocol {
159-
internal func registerMethods(with router: inout GRPCCore.RPCRouter) {
159+
internal func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
160160
router.registerHandler(
161161
forMethod: Helloworld_Greeter.Method.SayHello.descriptor,
162162
deserializer: GRPCProtobuf.ProtobufDeserializer<Helloworld_HelloRequest>(),
@@ -246,14 +246,14 @@ extension Helloworld_Greeter {
246246
/// > Source IDL Documentation:
247247
/// >
248248
/// > The greeting service definition.
249-
internal struct Client: ClientProtocol {
250-
private let client: GRPCCore.GRPCClient
249+
internal struct Client<Transport>: ClientProtocol where Transport: GRPCCore.ClientTransport {
250+
private let client: GRPCCore.GRPCClient<Transport>
251251

252252
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
253253
///
254254
/// - Parameters:
255255
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
256-
internal init(wrapping client: GRPCCore.GRPCClient) {
256+
internal init(wrapping client: GRPCCore.GRPCClient<Transport>) {
257257
self.client = client
258258
}
259259

Examples/reflection-server/Sources/Generated/echo.grpc.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ extension Echo_Echo {
347347

348348
// Default implementation of 'registerMethods(with:)'.
349349
extension Echo_Echo.StreamingServiceProtocol {
350-
internal func registerMethods(with router: inout GRPCCore.RPCRouter) {
350+
internal func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
351351
router.registerHandler(
352352
forMethod: Echo_Echo.Method.Get.descriptor,
353353
deserializer: GRPCProtobuf.ProtobufDeserializer<Echo_EchoRequest>(),
@@ -600,14 +600,14 @@ extension Echo_Echo {
600600
/// The ``Client`` provides an implementation of ``ClientProtocol`` which wraps
601601
/// a `GRPCCore.GRPCCClient`. The underlying `GRPCClient` provides the long-lived
602602
/// means of communication with the remote peer.
603-
internal struct Client: ClientProtocol {
604-
private let client: GRPCCore.GRPCClient
603+
internal struct Client<Transport>: ClientProtocol where Transport: GRPCCore.ClientTransport {
604+
private let client: GRPCCore.GRPCClient<Transport>
605605

606606
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
607607
///
608608
/// - Parameters:
609609
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
610-
internal init(wrapping client: GRPCCore.GRPCClient) {
610+
internal init(wrapping client: GRPCCore.GRPCClient<Transport>) {
611611
self.client = client
612612
}
613613

Examples/route-guide/Sources/Generated/route_guide.grpc.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ extension Routeguide_RouteGuide {
407407

408408
// Default implementation of 'registerMethods(with:)'.
409409
extension Routeguide_RouteGuide.StreamingServiceProtocol {
410-
internal func registerMethods(with router: inout GRPCCore.RPCRouter) {
410+
internal func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
411411
router.registerHandler(
412412
forMethod: Routeguide_RouteGuide.Method.GetFeature.descriptor,
413413
deserializer: GRPCProtobuf.ProtobufDeserializer<Routeguide_Point>(),
@@ -684,14 +684,14 @@ extension Routeguide_RouteGuide {
684684
/// > Source IDL Documentation:
685685
/// >
686686
/// > Interface exported by the server.
687-
internal struct Client: ClientProtocol {
688-
private let client: GRPCCore.GRPCClient
687+
internal struct Client<Transport>: ClientProtocol where Transport: GRPCCore.ClientTransport {
688+
private let client: GRPCCore.GRPCClient<Transport>
689689

690690
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
691691
///
692692
/// - Parameters:
693693
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
694-
internal init(wrapping client: GRPCCore.GRPCClient) {
694+
internal init(wrapping client: GRPCCore.GRPCClient<Transport>) {
695695
self.client = client
696696
}
697697

0 commit comments

Comments
 (0)