Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Nov 8, 2023
1 parent 6e56020 commit 2a9511e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.knora.webapi.slice.infrastructure.api.PrometheusApp

object MetricsServer {

private val metricsServer = ZIO.serviceWith[PrometheusApp](_.route).flatMap(Server.install(_)) *> ZIO.never
private val metricsServer = ZIO.serviceWithZIO[PrometheusApp](app => Server.install(app.route)) *> ZIO.never

Check warning on line 20 in webapi/src/main/scala/org/knora/webapi/slice/infrastructure/MetricsServer.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/slice/infrastructure/MetricsServer.scala#L20

Added line #L20 was not covered by tests

val make: ZIO[State with AppConfig, Throwable, Unit] =
ZIO.serviceWithZIO[AppConfig] { config =>
Expand Down

0 comments on commit 2a9511e

Please sign in to comment.