Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/SwiftGRPC/Runtime/ServiceClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down