Skip to content

Commit 5ebf7a3

Browse files
authored
Merge pull request #195 from MrMage/public-setters
Make the `metadata`, `host` and `timeout` properties on the `ServiceClient` protocol writable
2 parents f57b9c3 + 9124aee commit 5ebf7a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftGRPC/Runtime/ServiceClient.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ import Dispatch
1818
import Foundation
1919
import SwiftProtobuf
2020

21-
public protocol ServiceClient {
21+
public protocol ServiceClient: class {
2222
var channel: Channel { get }
2323

2424
/// This metadata will be sent with all requests.
25-
var metadata: Metadata { get }
25+
var metadata: Metadata { get set }
2626

2727
/// This property allows the service host name to be overridden.
2828
/// For example, it can be used to make calls to "localhost:8080"
2929
/// appear to be to "example.com".
30-
var host: String { get }
30+
var host: String { get set }
3131

3232
/// This property allows the service timeout to be overridden.
33-
var timeout: TimeInterval { get }
33+
var timeout: TimeInterval { get set }
3434
}
3535

3636
open class ServiceClientBase: ServiceClient {

0 commit comments

Comments
 (0)