Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cats-effect to 3.5.7 #626

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val catsV = "2.5.5"
val catsV = "3.5.7"

val catsEffectV = "2.3.0"

Expand Down
7 changes: 4 additions & 3 deletions core/src/main/scala/api/Http4sEndpoint.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand All @@ -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)
}
Loading