mirror of https://github.com/usbharu/Hideout.git
くそったれLintを黙らせた
This commit is contained in:
parent
a0c24f98bd
commit
6b80c387fe
|
@ -157,3 +157,6 @@ potential-bugs:
|
|||
|
||||
ElseCaseInsteadOfExhaustiveWhen:
|
||||
active: true
|
||||
|
||||
HasPlatformType:
|
||||
active: false
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue