くそったれ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: ElseCaseInsteadOfExhaustiveWhen:
active: true active: true
HasPlatformType:
active: false

View File

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