Update binny to 0.6.0

This commit is contained in:
eikek
2022-06-27 13:23:48 +02:00
parent 58061333da
commit bca2ea28e3
7 changed files with 50 additions and 65 deletions

View File

@ -65,7 +65,7 @@ object FileCopyTask {
if (result.success)
s"Successfully copied $allGood files to ${result.counter.size} stores."
else
s"Copying files failed for ${failed} files! ${allGood} were copied successfully."
s"Copying files failed for ${failed} files! $allGood were copied successfully."
}
}
@ -122,8 +122,8 @@ object FileCopyTask {
case None =>
CopyResult.noSourceImpl.pure[F]
case Some((src, srcMeta)) =>
to.traverse(FileRepository.getDelegate).map(_.map(_._1)) match {
case Some(src) =>
to.traverse(FileRepository.getDelegate) match {
case None =>
CopyResult.noTargetImpl.pure[F]
@ -135,7 +135,7 @@ object FileCopyTask {
}
def copyTo(to: BinaryStore[F]) =
CopyTool.copyAll[F](log, src, srcMeta, to, 50, maxConcurrent)
CopyTool.copyAll[F](log, src, to, 50, maxConcurrent)
logger.info(s"Start copying ${from.config} -> ${to.map(_.config)}") *>
targets.traverse(copyTo).map(CopyResult.success)