mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-25 02:51:17 +00:00
Flush at every migrated file
This commit is contained in:
parent
ccb9f49b8b
commit
93c268fc58
1 changed files with 11 additions and 0 deletions
|
@ -137,6 +137,17 @@ impl UploadManager {
|
|||
self.inner
|
||||
.settings_tree
|
||||
.insert(STORE_MIGRATION_PROGRESS, key)?;
|
||||
|
||||
let (ident, detail, settings) = futures_util::future::join3(
|
||||
self.inner.identifier_tree.flush_async(),
|
||||
self.inner.details_tree.flush_async(),
|
||||
self.inner.settings_tree.flush_async(),
|
||||
)
|
||||
.await;
|
||||
|
||||
ident?;
|
||||
detail?;
|
||||
settings?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue