From 00ec8547b5d37fe744628e292a91de57274a0dd7 Mon Sep 17 00:00:00 2001 From: Alessandro Zanin Date: Sun, 1 Dec 2024 02:11:13 +0000 Subject: [PATCH 1/2] Applied Scalafix rule(s) github:typelevel/cats-effect/v3_0_0?sha=v3.0.0 --- core/src/main/scala/api/Http4sEndpoint.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/api/Http4sEndpoint.scala b/core/src/main/scala/api/Http4sEndpoint.scala index 129d1ca3..8b4216b7 100644 --- a/core/src/main/scala/api/Http4sEndpoint.scala +++ b/core/src/main/scala/api/Http4sEndpoint.scala @@ -2,14 +2,15 @@ package api import api.model.response.{ EventError, UnknownEventError } import api.service.EventsService -import cats.effect.{ ContextShift, IO, Timer } +import cats.effect.IO import cats.implicits._ import org.http4s.HttpRoutes import sttp.tapir.server.http4s.Http4sServerInterpreter +import cats.effect.Temporal class Http4sEndpoint(eventsService: EventsService)(implicit cs: ContextShift[IO], - timer: Timer[IO] + timer: Temporal[IO] ) { val events: HttpRoutes[IO] = @@ -31,6 +32,6 @@ class Http4sEndpoint(eventsService: EventsService)(implicit object Http4sEndpoint { - def apply(eventsService: EventsService)(implicit cs: ContextShift[IO], timer: Timer[IO]): Http4sEndpoint = + def apply(eventsService: EventsService)(implicit timer: Temporal[IO]): Http4sEndpoint = new Http4sEndpoint(eventsService) } From 0daa8de44c223dc3efc6b36642d0c5da134f05cc Mon Sep 17 00:00:00 2001 From: Alessandro Zanin Date: Sun, 1 Dec 2024 02:11:42 +0000 Subject: [PATCH 2/2] Update cats-effect to 3.5.7 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 731f7502..8de7d3c7 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -val catsV = "2.5.5" +val catsV = "3.5.7" val catsEffectV = "2.3.0"