Update http4s to 0.23.6

This commit is contained in:
eikek
2021-10-24 18:24:03 +02:00
parent cd0f7ec66e
commit 48d2bec9c4
12 changed files with 22 additions and 45 deletions

View File

@ -116,12 +116,11 @@ object BackendApp {
def apply[F[_]: Async](
cfg: Config,
connectEC: ExecutionContext,
httpClientEc: ExecutionContext
connectEC: ExecutionContext
)(ftsFactory: Client[F] => Resource[F, FtsClient[F]]): Resource[F, BackendApp[F]] =
for {
store <- Store.create(cfg.jdbc, cfg.files.chunkSize, connectEC)
httpClient <- BlazeClientBuilder[F](httpClientEc).resource
httpClient <- BlazeClientBuilder[F].resource
ftsClient <- ftsFactory(httpClient)
backend <- create(cfg, store, httpClient, ftsClient)
} yield backend

View File

@ -6,8 +6,6 @@
package docspell.backend.ops
import scala.concurrent.ExecutionContext
import cats.data.OptionT
import cats.effect._
import cats.implicits._
@ -42,10 +40,7 @@ object OJoex {
} yield cancel.success).getOrElse(false)
})
def create[F[_]: Async](
ec: ExecutionContext,
store: Store[F]
): Resource[F, OJoex[F]] =
JoexClient.resource(ec).flatMap(client => apply(client, store))
def create[F[_]: Async](store: Store[F]): Resource[F, OJoex[F]] =
JoexClient.resource.flatMap(client => apply(client, store))
}