ScalafmtAll

This commit is contained in:
Eike Kettner
2020-06-23 00:18:59 +02:00
parent a3e16e57de
commit e06a3f8fdd
6 changed files with 20 additions and 18 deletions

View File

@ -16,7 +16,7 @@ case class Ident(id: String) {
def nonEmpty: Boolean =
!isEmpty
def / (next: Ident): Ident =
def /(next: Ident): Ident =
new Ident(id + "." + next.id)
}

View File

@ -35,7 +35,6 @@ object SolrUpdate {
.withQueryParam("overwrite", "true")
.withQueryParam("wt", "json")
def add(tds: List[TextData]): F[Unit] = {
val req = Method.POST(tds.asJson, url)
client.expect[String](req).map(r => logger.debug(s"Req: $req Response: $r"))

View File

@ -17,7 +17,8 @@ object ItemHandler {
)
def newItem[F[_]: ConcurrentEffect: ContextShift](
cfg: Config, fts: FtsClient[F]
cfg: Config,
fts: FtsClient[F]
): Task[F, ProcessItemArgs, Unit] =
CreateItem[F]
.flatMap(itemStateTask(ItemState.Processing))
@ -37,7 +38,8 @@ object ItemHandler {
Task(_.isLastRetry)
def safeProcess[F[_]: ConcurrentEffect: ContextShift](
cfg: Config, fts: FtsClient[F]
cfg: Config,
fts: FtsClient[F]
)(data: ItemData): Task[F, ProcessItemArgs, ItemData] =
isLastRetry[F].flatMap {
case true =>

View File

@ -10,7 +10,8 @@ import docspell.ftsclient.FtsClient
object ProcessItem {
def apply[F[_]: ConcurrentEffect: ContextShift](
cfg: Config, fts: FtsClient[F]
cfg: Config,
fts: FtsClient[F]
)(item: ItemData): Task[F, ProcessItemArgs, ItemData] =
ExtractArchive(item)
.flatMap(Task.setProgress(20))