From 9124aeeb6ff1af42eb041594c85835134d8966df Mon Sep 17 00:00:00 2001 From: Daniel Alm Date: Thu, 22 Mar 2018 14:22:06 +0100 Subject: [PATCH] Make the `metadata`, `host` and `timeout` properties on `ServiceClient` writable. --- Sources/SwiftGRPC/Runtime/ServiceClient.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/SwiftGRPC/Runtime/ServiceClient.swift b/Sources/SwiftGRPC/Runtime/ServiceClient.swift index 11d3c2675..3ced48acd 100644 --- a/Sources/SwiftGRPC/Runtime/ServiceClient.swift +++ b/Sources/SwiftGRPC/Runtime/ServiceClient.swift @@ -18,19 +18,19 @@ import Dispatch import Foundation import SwiftProtobuf -public protocol ServiceClient { +public protocol ServiceClient: class { var channel: Channel { get } /// This metadata will be sent with all requests. - var metadata: Metadata { get } + var metadata: Metadata { get set } /// This property allows the service host name to be overridden. /// For example, it can be used to make calls to "localhost:8080" /// appear to be to "example.com". - var host: String { get } + var host: String { get set } /// This property allows the service timeout to be overridden. - var timeout: TimeInterval { get } + var timeout: TimeInterval { get set } } open class ServiceClientBase: ServiceClient {