Skip to content

Commit

Permalink
Update ServiceClient init
Browse files Browse the repository at this point in the history
  • Loading branch information
armstrongnate committed Jun 6, 2018
1 parent 0251dd8 commit b795d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftGRPC/Runtime/ServiceClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ open class ServiceClientBase: ServiceClient {
}

/// Create a client that makes secure connections with a custom certificate.
public init(address: String, certificates: String, arguments: [Channel.Argument] = []) {
public init(address: String, certificates: String, clientCertificates: String? = nil, clientKey: String? = nil, arguments: [Channel.Argument] = []) {
gRPC.initialize()
channel = Channel(address: address, certificates: certificates, arguments: arguments)
channel = Channel(address: address, certificates: certificates, clientCertificates: clientCertificates, clientKey: clientKey, arguments: arguments)
metadata = Metadata()
}
}
Expand Down

0 comments on commit b795d14

Please sign in to comment.