|
|
@@ -52,17 +52,17 @@ extension Generator {
|
|
|
private func printServiceClientImplementation() {
|
|
|
println("\(access) final class \(serviceClassName)Client: GRPCClient, \(serviceClassName) {")
|
|
|
indent()
|
|
|
- println("\(access) let connection: ClientConnection")
|
|
|
+ println("\(access) let channel: GRPCChannel")
|
|
|
println("\(access) var defaultCallOptions: CallOptions")
|
|
|
println()
|
|
|
println("/// Creates a client for the \(servicePath) service.")
|
|
|
println("///")
|
|
|
printParameters()
|
|
|
- println("/// - connection: `ClientConnection` to the service host.")
|
|
|
+ println("/// - channel: `GRPCChannel` to the service host.")
|
|
|
println("/// - defaultCallOptions: Options to use for each service call if the user doesn't provide them.")
|
|
|
- println("\(access) init(connection: ClientConnection, defaultCallOptions: CallOptions = CallOptions()) {")
|
|
|
+ println("\(access) init(channel: GRPCChannel, defaultCallOptions: CallOptions = CallOptions()) {")
|
|
|
indent()
|
|
|
- println("self.connection = connection")
|
|
|
+ println("self.channel = channel")
|
|
|
println("self.defaultCallOptions = defaultCallOptions")
|
|
|
outdent()
|
|
|
println("}")
|