Update fs2-core, fs2-io to 2.5.4

This commit is contained in:
Scala Steward
2021-03-30 22:44:52 +02:00
committed by Eike Kettner
parent e8f61c67d0
commit 144ea852bf
10 changed files with 16 additions and 16 deletions

View File

@ -37,7 +37,7 @@ object TextAnalyser {
blocker: Blocker
): Resource[F, TextAnalyser[F]] =
Resource
.liftF(Nlp(cfg.nlpConfig))
.eval(Nlp(cfg.nlpConfig))
.map(stanfordNer =>
new TextAnalyser[F] {
def annotate(

View File

@ -47,8 +47,8 @@ object PipelineCache {
def obtain(key: String, settings: NlpSettings): Resource[F, Annotator[F]] =
for {
_ <- cacheClear.withCache
id <- Resource.liftF(makeSettingsId(settings))
nlp <- Resource.liftF(
id <- Resource.eval(makeSettingsId(settings))
nlp <- Resource.eval(
data.modify(cache => getOrCreate(key, id, cache, settings, creator))
)
} yield nlp