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" 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) }