* =per #23042 Recover.none should immediately carry None snapshot crit * Update migration-guide-2.4.x-2.5.x.md
This commit is contained in:
parent
2449aeeb14
commit
1f63ebf911
2 changed files with 4 additions and 3 deletions
|
|
@ -100,7 +100,7 @@ object Recovery {
|
|||
* Convenience method for skipping recovery in [[PersistentActor]].
|
||||
* @see [[Recovery]]
|
||||
*/
|
||||
val none: Recovery = Recovery(toSequenceNr = 0L)
|
||||
val none: Recovery = Recovery(toSequenceNr = 0L, fromSnapshot = SnapshotSelectionCriteria.None)
|
||||
}
|
||||
|
||||
final class RecoveryTimedOut(message: String) extends RuntimeException(message) with NoStackTrace
|
||||
|
|
|
|||
|
|
@ -22,9 +22,10 @@ object SnapshotRecoveryLocalStoreSpec {
|
|||
}
|
||||
|
||||
class LoadSnapshotTestPersistentActor(name: String, probe: ActorRef) extends NamedPersistentActor(name)
|
||||
with TurnOffRecoverOnStart
|
||||
with ActorLogging {
|
||||
|
||||
override def recovery = Recovery(toSequenceNr = 0)
|
||||
|
||||
def receiveCommand = {
|
||||
case _ ⇒
|
||||
}
|
||||
|
|
@ -58,4 +59,4 @@ class SnapshotRecoveryLocalStoreSpec extends PersistenceSpec(PersistenceSpec.con
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue