akka-persistence compiler warnings as fatal errors (#26654)

This commit is contained in:
Johan Andrén 2019-04-05 14:43:23 +02:00 committed by Arnout Engelen
parent 7e7901ad49
commit 38e63a0e41
38 changed files with 147 additions and 146 deletions

View file

@ -80,7 +80,7 @@ object PerformanceSpec {
class MixedTestPersistentActor(name: String) extends PerformanceTestPersistentActor(name) {
var counter = 0
val handler: Any => Unit = { evt =>
val handler: Any => Unit = { _ =>
if (lastSequenceNr % 1000 == 0) print(".")
if (lastSequenceNr == failAt) throw new TestException("boom")
}
@ -108,7 +108,7 @@ object PerformanceSpec {
case "c" =>
persist("c")(_ => context.unbecome())
unstashAll()
case other => stash()
case _ => stash()
}
}
}