elifarley
Can't create bean Bean[class=connectors.PanthroClient] due to error: Cyclic dependency detected while resolving class kotlin.Function1
typealias 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 } }
(Request) -> Response
(String) -> Int
kotlin.Function1
arnaud.giuliani
A modern programming language that makes developers happier.