Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jan 24, 2025
1 parent 354e662 commit bd9c156
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class HttpClientFutureBackend private (

override protected def ensureOnAbnormal[T](effect: Future[T])(finalizer: => Future[Unit]): Future[T] =
effect.recoverWith { case e =>
finalizer.flatMap(_ => Future.failed(e)).recoverWith { case e2 => e.addSuppressed(e2); Future.failed(e) }
finalizer.recoverWith { case e2 => e.addSuppressed(e2); Future.failed(e) }.flatMap(_ => Future.failed(e))
}
}

Expand Down

0 comments on commit bd9c156

Please sign in to comment.