Browse Source

Update ServiceClient init

Nate Armstrong 7 years ago
parent
commit
b795d147c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/SwiftGRPC/Runtime/ServiceClient.swift

+ 2 - 2
Sources/SwiftGRPC/Runtime/ServiceClient.swift

@@ -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()
   }
 }