Skip to content

Commit

Permalink
Fix other backends
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Dec 27, 2024
1 parent 55f1b24 commit 48f5e65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class HttpClientFs2Backend[F[_]: ConcurrentEffect: ContextShift] private (
override def send[T](request: GenericRequest[T, R]): F[Response[T]] =
super.send(request).guarantee(ContextShift[F].shift)

override protected val bodyToHttpClient: BodyToHttpClient[F, Fs2Streams[F]] =
new BodyToHttpClient[F, Fs2Streams[F]] {
override protected val bodyToHttpClient: BodyToHttpClient[F, Fs2Streams[F], R] =
new BodyToHttpClient[F, Fs2Streams[F], R] {
override val streams: Fs2Streams[F] = Fs2Streams[F]
override implicit def monad: MonadError[F] = self.monad
override def streamToPublisher(stream: Stream[F, Byte]): F[HttpRequest.BodyPublisher] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class HttpClientMonixBackend private (

override val streams: MonixStreams = MonixStreams

override protected val bodyToHttpClient: BodyToHttpClient[Task, MonixStreams] =
new BodyToHttpClient[Task, MonixStreams] {
override protected val bodyToHttpClient: BodyToHttpClient[Task, MonixStreams, R] =
new BodyToHttpClient[Task, MonixStreams, R] {
override val streams: MonixStreams = MonixStreams
override implicit def monad: MonadError[Task] = self.monad
override def streamToPublisher(stream: Observable[Array[Byte]]): Task[HttpRequest.BodyPublisher] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class HttpClientZioBackend private (
.toStream()
.mapConcatChunk(list => ByteArray(list.asScala.toList.flatMap(_.safeRead()).toArray))

override protected val bodyToHttpClient: BodyToHttpClient[Task, ZioStreams] =
new BodyToHttpClient[Task, ZioStreams] {
override protected val bodyToHttpClient: BodyToHttpClient[Task, ZioStreams, R] =
new BodyToHttpClient[Task, ZioStreams, R] {
override val streams: ZioStreams = ZioStreams
override implicit def monad: MonadError[Task] = self.monad
override def streamToPublisher(stream: ZStream[Any, Throwable, Byte]): Task[BodyPublisher] = {
Expand Down

0 comments on commit 48f5e65

Please sign in to comment.