=per #15730 fix context.become in PersistentView
(cherry picked from commit 561bd00cf69b0070693db397fe0dbda824792335)
This commit is contained in:
parent
f6bf141e97
commit
ec55ab2d22
3 changed files with 28 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue