mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 08:13:57 +01:00
fix(store-init): re-sync after running auto store init (#1834)
This commit is contained in:
parent
da24f734e5
commit
f943e03f90
@ -105,7 +105,17 @@ async fn run(
|
||||
println!("Running automatic history store init...");
|
||||
|
||||
// Internally we use the global filter mode, so this context is ignored.
|
||||
// don't recurse or loop here.
|
||||
history_store.init_store(db).await?;
|
||||
|
||||
println!("Re-running sync due to new records locally");
|
||||
|
||||
// we'll want to run sync once more, as there will now be stuff to upload
|
||||
let (uploaded, downloaded) = sync::sync(settings, &store).await?;
|
||||
|
||||
history_store.incremental_build(db, &downloaded).await?;
|
||||
|
||||
println!("{uploaded}/{} up/down to record store", downloaded.len());
|
||||
}
|
||||
} else {
|
||||
atuin_client::sync::sync(settings, force, db).await?;
|
||||
|
Loading…
Reference in New Issue
Block a user