aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/sync.rs
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-04-25 18:21:52 +0100
committerGitHub <noreply@github.com>2021-04-25 17:21:52 +0000
commit156893d774b4da5b541fdbb08428f9ec392949a0 (patch)
tree9185d94384aa62eb6eb099ddc4ca9408df6f90d1 /src/command/sync.rs
parentAdd to Cargo.toml (diff)
downloadatuin-156893d774b4da5b541fdbb08428f9ec392949a0.zip
Update docs, unify on SQLx, bugfixes (#40)
* Begin moving to sqlx for local too * Stupid scanners should just have a nice cup of tea Random internet shit searching for /.env or whatever * Remove diesel and rusqlite fully
Diffstat (limited to '')
-rw-r--r--src/command/sync.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/command/sync.rs b/src/command/sync.rs
index d70b554f..f8bfd5e2 100644
--- a/src/command/sync.rs
+++ b/src/command/sync.rs
@@ -4,11 +4,15 @@ use atuin_client::database::Database;
use atuin_client::settings::Settings;
use atuin_client::sync;
-pub async fn run(settings: &Settings, force: bool, db: &mut (impl Database + Send)) -> Result<()> {
+pub async fn run(
+ settings: &Settings,
+ force: bool,
+ db: &mut (impl Database + Send + Sync),
+) -> Result<()> {
sync::sync(settings, force, db).await?;
println!(
"Sync complete! {} items in database, force: {}",
- db.history_count()?,
+ db.history_count().await?,
force
);
Ok(())