From fc94fabc1890878fd78ad8c71d1ebbae0efb05f1 Mon Sep 17 00:00:00 2001 From: Hakky54 Date: Tue, 26 Nov 2024 23:54:59 +0100 Subject: [PATCH] Reformatted option --- .../client/service/FinagleHttpClientService.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala b/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala index 6b4f117..6a4ba67 100644 --- a/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala +++ b/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala @@ -63,8 +63,12 @@ class FinagleHttpClientConfiguration { if (uri.getScheme == "https") { val sslClientConfiguration = SslClientConfiguration( - keyCredentials = OptionConverters.toScala(sslFactory.getKeyManagerFactory).map(kmf => KeyCredentials.KeyManagerFactory(kmf)).getOrElse(KeyCredentials.Unspecified), - trustCredentials = OptionConverters.toScala(sslFactory.getTrustManagerFactory).map(tmf => TrustCredentials.TrustManagerFactory(tmf)).getOrElse(TrustCredentials.Unspecified) + keyCredentials = OptionConverters.toScala(sslFactory.getKeyManagerFactory) + .map(kmf => KeyCredentials.KeyManagerFactory(kmf)) + .getOrElse(KeyCredentials.Unspecified), + trustCredentials = OptionConverters.toScala(sslFactory.getTrustManagerFactory) + .map(tmf => TrustCredentials.TrustManagerFactory(tmf)) + .getOrElse(TrustCredentials.Unspecified) ) client = client.withTransport.tls(sslClientConfiguration)