mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Upgrade code base to CE3
This commit is contained in:
@ -11,7 +11,7 @@ import org.http4s.client.Client
|
||||
import org.http4s.client.middleware.Logger
|
||||
import org.log4s.getLogger
|
||||
|
||||
final class SolrFtsClient[F[_]: Effect](
|
||||
final class SolrFtsClient[F[_]: Async](
|
||||
solrUpdate: SolrUpdate[F],
|
||||
solrSetup: SolrSetup[F],
|
||||
solrQuery: SolrQuery[F]
|
||||
@ -77,7 +77,7 @@ final class SolrFtsClient[F[_]: Effect](
|
||||
object SolrFtsClient {
|
||||
private[this] val logger = getLogger
|
||||
|
||||
def apply[F[_]: ConcurrentEffect](
|
||||
def apply[F[_]: Async](
|
||||
cfg: SolrConfig,
|
||||
httpClient: Client[F]
|
||||
): Resource[F, FtsClient[F]] = {
|
||||
@ -91,7 +91,7 @@ object SolrFtsClient {
|
||||
)
|
||||
}
|
||||
|
||||
private def loggingMiddleware[F[_]: Concurrent](
|
||||
private def loggingMiddleware[F[_]: Async](
|
||||
cfg: SolrConfig,
|
||||
client: Client[F]
|
||||
): Client[F] =
|
||||
|
@ -22,7 +22,7 @@ trait SolrQuery[F[_]] {
|
||||
}
|
||||
|
||||
object SolrQuery {
|
||||
def apply[F[_]: ConcurrentEffect](cfg: SolrConfig, client: Client[F]): SolrQuery[F] = {
|
||||
def apply[F[_]: Async](cfg: SolrConfig, client: Client[F]): SolrQuery[F] = {
|
||||
val dsl = new Http4sClientDsl[F] {}
|
||||
import dsl._
|
||||
|
||||
|
@ -24,7 +24,7 @@ trait SolrSetup[F[_]] {
|
||||
object SolrSetup {
|
||||
private val versionDocId = "6d8f09f4-8d7e-4bc9-98b8-7c89223b36dd"
|
||||
|
||||
def apply[F[_]: ConcurrentEffect](cfg: SolrConfig, client: Client[F]): SolrSetup[F] = {
|
||||
def apply[F[_]: Async](cfg: SolrConfig, client: Client[F]): SolrSetup[F] = {
|
||||
val dsl = new Http4sClientDsl[F] {}
|
||||
import dsl._
|
||||
|
||||
|
@ -30,7 +30,7 @@ trait SolrUpdate[F[_]] {
|
||||
|
||||
object SolrUpdate {
|
||||
|
||||
def apply[F[_]: ConcurrentEffect](cfg: SolrConfig, client: Client[F]): SolrUpdate[F] = {
|
||||
def apply[F[_]: Async](cfg: SolrConfig, client: Client[F]): SolrUpdate[F] = {
|
||||
val dsl = new Http4sClientDsl[F] {}
|
||||
import dsl._
|
||||
|
||||
|
Reference in New Issue
Block a user