Skip to content

Commit

Permalink
Merge pull request akka#17018 from danielwegener/patch-1
Browse files Browse the repository at this point in the history
=doc: Simplyfies decider in FlowErrorDocSpec.scala
  • Loading branch information
patriknw committed Mar 6, 2015
2 parents 9ea08e0 + c6b51ea commit 9ae08a5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class FlowErrorDocSpec extends AkkaSpec {

"demonstrate resume stream" in {
//#resume
val decider: Supervision.Decider = exc => exc match {
val decider: Supervision.Decider = {
case _: ArithmeticException => Supervision.Resume
case _ => Supervision.Stop
}
Expand All @@ -46,7 +46,7 @@ class FlowErrorDocSpec extends AkkaSpec {
"demonstrate resume section" in {
//#resume-section
implicit val mat = ActorFlowMaterializer()
val decider: Supervision.Decider = exc => exc match {
val decider: Supervision.Decider = {
case _: ArithmeticException => Supervision.Resume
case _ => Supervision.Stop
}
Expand All @@ -64,7 +64,7 @@ class FlowErrorDocSpec extends AkkaSpec {
"demonstrate restart section" in {
//#restart-section
implicit val mat = ActorFlowMaterializer()
val decider: Supervision.Decider = exc => exc match {
val decider: Supervision.Decider = {
case _: IllegalArgumentException => Supervision.Restart
case _ => Supervision.Stop
}
Expand Down

0 comments on commit 9ae08a5

Please sign in to comment.