Skip to content

Commit

Permalink
Revert #1126 as it's causing a performance regression (#1322)
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Artigao Carreño <[email protected]>
  • Loading branch information
atnoya and aartigao committed Apr 25, 2024
1 parent 566005a commit 81bee4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private[kafka] trait Blocking[F[_]] {
private[kafka] object Blocking {

def fromSync[F[_]: Sync]: Blocking[F] = new Blocking[F] {
override def apply[A](a: => A): F[A] = Sync[F].interruptible(a)
override def apply[A](a: => A): F[A] = Sync[F].blocking(a)
}

def fromExecutionContext[F[_]](ec: ExecutionContext)(implicit F: Async[F]): Blocking[F] =
Expand Down

0 comments on commit 81bee4e

Please sign in to comment.