Selaa lähdekoodia

Add missing bracket in NaturalLanguage example (#484)

George Barnett 6 vuotta sitten
vanhempi
commit
b246b39b45
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Examples/Google/NaturalLanguage/Sources/main.swift

+ 2 - 2
Examples/Google/NaturalLanguage/Sources/main.swift

@@ -37,9 +37,9 @@ func makeServiceClient(host: String,
       let configuration = GRPCClientConnection.Configuration(
         target: .hostAndPort(host, port),
         eventLoopGroup: eventLoopGroup,
-        tlsConfiguration: .init(sslContext: try makeClientTLS())
+        tlsConfiguration: .init(sslContext: try makeClientTLS()))
 
-      try GRPCClientConnection.start(configuration)
+      GRPCClientConnection.start(configuration)
         .map { client in
           Google_Cloud_Language_V1_LanguageServiceServiceClient(connection: client)
         }.cascade(to: promise)