mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Update scalafmt to 3.0.8
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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],
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user