diff options
Diffstat (limited to 'hv-collector-health-check/src/main')
-rw-r--r-- | hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/factory/HealthCheckApiServer.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/factory/HealthCheckApiServer.kt b/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/factory/HealthCheckApiServer.kt index b4d7c142..f12d9acf 100644 --- a/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/factory/HealthCheckApiServer.kt +++ b/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/factory/HealthCheckApiServer.kt @@ -53,12 +53,11 @@ class HealthCheckApiServer(private val healthState: HealthState, NettyServerHandle(ctx.bindNow()) } - private fun readinessHandler(req: HttpServerRequest, resp: HttpServerResponse) = + private fun readinessHandler(_req: HttpServerRequest, resp: HttpServerResponse) = healthDescription.get().run { resp.status(status.httpResponseStatus.number).sendString(Flux.just(status.toString(), "\n", message)) } - private fun livenessHandler(req: HttpServerRequest, resp: HttpServerResponse) = + private fun livenessHandler(_req: HttpServerRequest, resp: HttpServerResponse) = resp.status(HttpResponseStatus.NOT_IMPLEMENTED).sendString(Mono.just("Not implemented yet")) - } |