elifarley
02/26/2018, 10:00 PMCan't create bean Bean[class=connectors.PanthroClient] due to error: Cyclic dependency detected while resolving class kotlin.Function1
. Any hints off the top of your heads?elifarley
02/26/2018, 10:08 PMtypealias HttpHandler = (Request) -> Response
val stargazerModule: Module = applicationContext {
provide("server") { Netty(getProperty("stargazer.rest-port", "8080").toInt()) as ServerConfig }
provide("http.client") { OkHttp as HttpHandler }
provide { PanthroClientImpl(getProperty("panthro.socket-address"), get("http.client")) as PanthroClient }
provide("stargazer.rest-handler") { newStargazerRestHandler(panthroClient = get()) as HttpHandler
}
}
elifarley
02/26/2018, 10:15 PM(Request) -> Response
and (String) -> Int
all get mapped to kotlin.Function1
, so there's no way to differentiate them, right?elifarley
02/26/2018, 10:16 PMarnaud.giuliani
02/27/2018, 2:44 PM