Skip to content

Commit

Permalink
Don't re-throw in pipeTo when receive from upstream fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rucek committed Oct 30, 2023
1 parent fb8bad7 commit d17a43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/ox/channels/SourceOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ trait SourceOps[+T] { this: Source[T] =>
repeatWhile {
receive() match
case ChannelClosed.Done => sink.done(); false
case e: ChannelClosed.Error => sink.error(e.reason); throw e.toThrowable
case e: ChannelClosed.Error => sink.error(e.reason); false
case t: T @unchecked => sink.send(t).orThrow; true
}

Expand Down

0 comments on commit d17a43e

Please sign in to comment.