Преглед на файлове

Update ServiceClient init

Nate Armstrong преди 7 години
родител
ревизия
b795d147c6
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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()
   }
 }