くそったれLintを黙らせた

This commit is contained in:
usbharu 2023-09-30 13:59:45 +09:00
parent a0c24f98bd
commit 6b80c387fe
2 changed files with 5 additions and 2 deletions

View File

@ -157,3 +157,6 @@ potential-bugs:
ElseCaseInsteadOfExhaustiveWhen:
active: true
HasPlatformType:
active: false

View File

@ -10,8 +10,6 @@ import org.springframework.stereotype.Service
@Service
@ConditionalOnProperty(name = ["hideout.job-queue.type"], havingValue = "nosql")
class KjobMongoJobQueueParentService : JobQueueParentService {
override fun init(jobDefines: List<Job>) = Unit
private val kjob = kjob(Mongo) {
connectionString = "mongodb://localhost"
databaseName = "kjob"
@ -21,6 +19,8 @@ class KjobMongoJobQueueParentService : JobQueueParentService {
isWorker = false
}.start()
override fun init(jobDefines: List<Job>) = Unit
override suspend fun <J : Job> schedule(job: J, block: ScheduleContext<J>.(J) -> Unit) {
kjob.schedule(job, block)
}