=per #15730 fix context.become in PersistentView

(cherry picked from commit 561bd00cf69b0070693db397fe0dbda824792335)
This commit is contained in:
Roland Kuhn 2014-08-23 18:50:25 +02:00 committed by Patrik Nordwall
parent f6bf141e97
commit ec55ab2d22
3 changed files with 28 additions and 5 deletions

View file

@ -136,10 +136,8 @@ trait PersistentView extends Actor with Recovery {
* INTERNAL API
* WARNING: This implementation UNWRAPS PERSISTENT() before delivering to the receive block.
*/
override private[persistence] def withCurrentPersistent(persistent: Persistent)(body: Persistent Unit): Unit =
super.withCurrentPersistent(persistent) { p
receive.applyOrElse(p.payload, unhandled)
}
override private[persistence] def runReceive(receive: Receive)(msg: Persistent): Unit =
receive.applyOrElse(msg.payload, unhandled)
private val viewSettings = extension.settings.view