Skip to content

Commit

Permalink
Fixed scala2.13 linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hnaderi committed Aug 16, 2024
1 parent a353f2d commit 276d656
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ private[http4s] abstract class PlatformCompanion[F[_]: Async: Files: Env]
"Cannot find where/how to connect using the provided config!"
).raiseError
)
case Some((cluster, server, auth)) =>
case Some((clusterData, server, auth)) =>
ssl(
caFile = cluster.`certificate-authority`,
caData = cluster.`certificate-authority-data`,
caFile = clusterData.`certificate-authority`,
caData = clusterData.`certificate-authority-data`,
clientCert = auth.`client-certificate-data`,
clientCertFile = auth.`client-certificate`,
clientKey = auth.`client-key-data`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ private[http4s] abstract class PlatformCompanion[F[_]: Async: Files: Env]
"Cannot find where/how to connect using the provided config!"
).raiseError
)
case Some((cluster, server, auth)) =>
case Some((clusterData, server, auth)) =>
client(
caFile = cluster.`certificate-authority`,
caData = cluster.`certificate-authority-data`,
caFile = clusterData.`certificate-authority`,
caData = clusterData.`certificate-authority-data`,
clientCert = auth.`client-certificate-data`,
clientCertFile = auth.`client-certificate`,
clientKey = auth.`client-key-data`,
Expand Down
4 changes: 2 additions & 2 deletions modules/http4s/.jvm/src/main/scala/JVMPlatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ private[http4s] abstract class JVMPlatform[F[_]](implicit
"Cannot find where/how to connect using the provided config!"
).raiseError
)
case Some((cluster, server, auth)) =>
val sslContext = F.blocking(SSLContexts.from(cluster, auth))
case Some((clusterData, server, auth)) =>
val sslContext = F.blocking(SSLContexts.from(clusterData, auth))

Resource
.eval(sslContext)
Expand Down
8 changes: 4 additions & 4 deletions modules/sttp/.jvm/src/main/scala/SttpJVM.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ private[client] trait SttpJVM[F[_]] {
throw new IllegalArgumentException(
"Cannot find where/how to connect using the provided config!"
)
case Some((cluster, server, auth)) =>
val ssl = SSLContexts.from(cluster, auth)
case Some((clusterData, server, auth)) =>
val ssl = SSLContexts.from(clusterData, auth)
HttpClient[SttpF[F, *]](
server,
SttpKBackend[F, T](buildWithSSLContext(ssl)),
Expand Down Expand Up @@ -124,8 +124,8 @@ private[client] trait SttpJVM[F[_]] {
val str = readFile(config)
manifest.parse[Config](str) match {
case Left(error) => throw error
case Right(config) =>
fromConfig(config, context = context, cluster = cluster)
case Right(configData) =>
fromConfig(configData, context = context, cluster = cluster)
}
}

Expand Down

0 comments on commit 276d656

Please sign in to comment.