~jan0sch/smederee

Showing details for patch 6e79360b8eec0c84ff64d524dd38e63371d188d6.
2024-02-08 (Thu), 10:29 AM - Jens Grassel - 6e79360b8eec0c84ff64d524dd38e63371d188d6

Hub: Refactoring: use clearer naming

Summary of changes
1 files modified with 2 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 2 added and 2 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala	2025-01-12 22:29:29.136359104 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala	2025-01-12 22:29:29.136359104 +0000
@@ -556,7 +556,7 @@
                                 )
                         )
                     )
-                    errorHandlingMiddleware = ErrorHandling.Recover.total(
+                    serviceWithErrorHandling = ErrorHandling.Recover.total(
                         ErrorAction.log(
                             hubWebService,
                             messageFailureLogAction = handleError,
@@ -568,7 +568,7 @@
                         .default[IO]
                         .withHost(hubConfiguration.service.host)
                         .withPort(hubConfiguration.service.port)
-                        .withHttpApp(csrfMiddleware.validate()(errorHandlingMiddleware))
+                        .withHttpApp(csrfMiddleware.validate()(serviceWithErrorHandling))
                         .build
                     webServer = resource.use(server =>
                         IO(log.info("Server started at {}", server.address)) >> IO.never.as(ExitCode.Success)