Optimize server dispatcher
This commit is contained in:
parent
5632ec7c85
commit
a84c170396
12 changed files with 483 additions and 459 deletions
|
|
@ -12,6 +12,8 @@ import com.pixelized.server.lwa.model.tag.TagService
|
|||
import com.pixelized.server.lwa.model.tag.TagStore
|
||||
import com.pixelized.server.lwa.server.Engine
|
||||
import com.pixelized.shared.lwa.utils.PathProvider
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Job
|
||||
import org.koin.core.module.dsl.createdAtStart
|
||||
import org.koin.core.module.dsl.singleOf
|
||||
import org.koin.dsl.module
|
||||
|
|
@ -29,6 +31,9 @@ val toolsDependencies
|
|||
single {
|
||||
PathProvider(appName = "LwaServer")
|
||||
}
|
||||
factory<CoroutineScope> {
|
||||
CoroutineScope(Job())
|
||||
}
|
||||
}
|
||||
|
||||
val engineDependencies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue