Update scalafmt to 3.0.8

This commit is contained in:
eikek
2021-12-11 20:30:47 +01:00
parent 61379ffff7
commit c21b2cdd29
29 changed files with 42 additions and 42 deletions

View File

@ -81,7 +81,7 @@ trait MigrationTasks {
def mkTransactor(ctx: Context): Transactor[IO] = {
val xa = Transactor.fromConnection[IO](ctx.getConnection())
Transactor.strategy.set(xa, Strategy.void) //transactions are handled by flyway
Transactor.strategy.set(xa, Strategy.void) // transactions are handled by flyway
}
}

View File

@ -61,7 +61,7 @@ object QJob {
retryPause: Duration,
currentTry: Int
): F[Either[Unit, Option[RJob]]] = {
//if this fails, we have to restart takeNextJob
// if this fails, we have to restart takeNextJob
def markJob(job: RJob): F[Either[Unit, RJob]] =
store.transact(for {
n <- RJob.setScheduled(job.id, worker)
@ -236,7 +236,7 @@ object QJob {
val JC = RJob.T
val waiting = NonEmptyList.of(JobState.Waiting, JobState.Stuck, JobState.Scheduled)
val running = NonEmptyList.of(JobState.Running)
//val done = JobState.all.filterNot(js => ).diff(waiting).diff(running)
// val done = JobState.all.filterNot(js => ).diff(waiting).diff(running)
def selectJobs(now: Timestamp): Stream[ConnectionIO, RJob] = {
val refDate = now.minusHours(24)

View File

@ -20,7 +20,7 @@ import doobie.implicits._
* a 0..1-1 relationship.
*/
case class RAttachmentArchive(
id: Ident, //same as RAttachment.id
id: Ident, // same as RAttachment.id
fileId: Ident,
name: Option[String],
messageId: Option[String],

View File

@ -17,7 +17,7 @@ import doobie._
import doobie.implicits._
case class RAttachmentMeta(
id: Ident, //same as RAttachment.id
id: Ident, // same as RAttachment.id
content: Option[String],
nerlabels: List[NerLabel],
proposals: MetaProposalList,

View File

@ -19,7 +19,7 @@ import doobie.implicits._
* 1-1 (or 0..1-1) relationship.
*/
case class RAttachmentPreview(
id: Ident, //same as RAttachment.id
id: Ident, // same as RAttachment.id
fileId: Ident,
name: Option[String],
created: Timestamp

View File

@ -19,7 +19,7 @@ import doobie.implicits._
* 1-1 (or 0..1-1) relationship.
*/
case class RAttachmentSource(
id: Ident, //same as RAttachment.id
id: Ident, // same as RAttachment.id
fileId: Ident,
name: Option[String],
created: Timestamp

View File

@ -120,7 +120,7 @@ object RCollective {
cs.listType.s,
es.schedule.s,
es.minAge.s,
const(0) //dummy value to load Nil as list of passwords
const(0) // dummy value to load Nil as list of passwords
),
from(c).leftJoin(cs, cs.cid === c.id).leftJoin(es, es.cid === c.id),
c.id === coll