Skip to content
Closed
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
Expand Up @@ -135,7 +135,7 @@ lazy val core = (project in file("core")).settings(
"io.grpc" % "grpc-protobuf" % Versions.grpcVersion,
"io.grpc" % "grpc-stub" % Versions.grpcVersion,
"org.typelevel" %% "cats-core" % "2.6.1",
"org.typelevel" %% "cats-effect" % "2.5.3",
"org.typelevel" %% "cats-effect" % "3.2.7",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.4",
"org.slf4j" % "jul-to-slf4j" % "1.7.32",
"org.slf4j" % "jcl-over-slf4j" % "1.7.32",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private[jsonbridge] object ScalaPBServiceHandlers extends ServiceHandlers with S

private def fromScalaFuture[F[_], A](ec: ExecutionContext)(fsf: F[Future[A]])(implicit F: Async[F]): F[A] =
fsf.flatMap { sf =>
F.async { cb =>
F.async_ { cb =>
sf.onComplete {
case Success(r) => cb(Right(r))
case Failure(e) => cb(Left(BridgeError.Unknown(e)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private[jsonbridge] object JavaServiceHandlers extends ServiceHandlers with Stri

private def fromListenableFuture[F[_], A](ec: ExecutionContext)(flf: F[ListenableFuture[A]])(implicit F: Async[F]): F[A] =
flf.flatMap { lf =>
F.async { cb =>
F.async_ { cb =>
Futures.addCallback(
lf,
new FutureCallback[A] {
Expand Down