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:
|
ElseCaseInsteadOfExhaustiveWhen:
|
||||||
active: true
|
active: true
|
||||||
|
|
||||||
|
HasPlatformType:
|
||||||
|
active: false
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue