Merge pull request #26585 from akka/wip-26581-SnapshotterResponse-patriknw
remove ??? in SnapshotMutableStateSpec, #26581
This commit is contained in:
commit
7e24f5dfb5
1 changed files with 13 additions and 2 deletions
|
|
@ -52,8 +52,19 @@ object SnapshotMutableStateSpec {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def deleteAsync(metadata: UntypedSnapshotMetadata) = ???
|
override def deleteAsync(metadata: UntypedSnapshotMetadata): Future[Unit] = {
|
||||||
def deleteAsync(persistenceId: String, criteria: UntypedSnapshotSelectionCriteria) = ???
|
state = state.filterNot {
|
||||||
|
case (pid, (_, meta)) => pid == metadata.persistenceId && meta.sequenceNr == metadata.sequenceNr
|
||||||
|
}
|
||||||
|
Future.successful(())
|
||||||
|
}
|
||||||
|
|
||||||
|
override def deleteAsync(persistenceId: String, criteria: UntypedSnapshotSelectionCriteria): Future[Unit] = {
|
||||||
|
state = state.filterNot {
|
||||||
|
case (pid, (_, meta)) => pid == persistenceId && criteria.matches(meta)
|
||||||
|
}
|
||||||
|
Future.successful(())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def conf: Config = ConfigFactory.parseString(s"""
|
def conf: Config = ConfigFactory.parseString(s"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue