From 7ffd9224fdc542618211648df0b5361abeaf098d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 16 Feb 2019 22:59:41 +0100 Subject: Code style fix --- .../src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvision-modules/kvision-server-ktor/src/main') diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt index e322aec5..4ca27ebd 100644 --- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt +++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt @@ -57,13 +57,13 @@ fun Application.kvisionInit(vararg modules: Module) { val injector = Guice.createInjector(MainModule(this), *modules) intercept(ApplicationCallPipeline.Features) { - call.attributes.put(InjectorKey, injector.createChildInjector(CallModule(call))) + call.attributes.put(INJECTOR_KEY, injector.createChildInjector(CallModule(call))) } } -val InjectorKey = AttributeKey("injector") +val INJECTOR_KEY = AttributeKey("injector") -val ApplicationCall.injector: Injector get() = attributes[InjectorKey] +val ApplicationCall.injector: Injector get() = attributes[INJECTOR_KEY] class CallModule(private val call: ApplicationCall) : AbstractModule() { override fun configure() { -- cgit