Keep confirmed Watch snapshots current
This commit is contained in:
@@ -747,11 +747,11 @@ impl WatchSnapshotSender {
|
||||
);
|
||||
let selected_entries =
|
||||
u32::try_from(entries.len()).map_err(|_| WatchSnapshotError::TooManyEntries)?;
|
||||
self.status = MobileWatchSnapshotStatus {
|
||||
state: MobileWatchSnapshotState::Pending,
|
||||
revision: Some(self.journal.revision),
|
||||
detail: snapshot_detail("pending delivery", selected_entries, self.journal.revision),
|
||||
};
|
||||
self.status = status_from_journal(&self.journal);
|
||||
if self.status.state == MobileWatchSnapshotState::Pending {
|
||||
self.status.detail =
|
||||
snapshot_detail("pending delivery", selected_entries, self.journal.revision);
|
||||
}
|
||||
Ok(WatchSnapshotTransfer {
|
||||
revision: self.journal.revision,
|
||||
selected_entries,
|
||||
|
||||
Reference in New Issue
Block a user