Skip to content

Commit 81bee4e

Browse files
atnoyaaartigao
andauthored
Revert #1126 as it's causing a performance regression (#1322)
Co-authored-by: Alan Artigao Carreño <[email protected]>
1 parent 566005a commit 81bee4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/main/scala/fs2/kafka/internal/Blocking.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ private[kafka] trait Blocking[F[_]] {
2020
private[kafka] object Blocking {
2121

2222
def fromSync[F[_]: Sync]: Blocking[F] = new Blocking[F] {
23-
override def apply[A](a: => A): F[A] = Sync[F].interruptible(a)
23+
override def apply[A](a: => A): F[A] = Sync[F].blocking(a)
2424
}
2525

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

0 commit comments

Comments
 (0)