diff options
Diffstat (limited to 'crates/atuin-server-sqlite')
| -rw-r--r-- | crates/atuin-server-sqlite/Cargo.toml | 6 | ||||
| -rw-r--r-- | crates/atuin-server-sqlite/src/lib.rs | 11 |
2 files changed, 3 insertions, 14 deletions
diff --git a/crates/atuin-server-sqlite/Cargo.toml b/crates/atuin-server-sqlite/Cargo.toml index 5d22b6db..d9acf39a 100644 --- a/crates/atuin-server-sqlite/Cargo.toml +++ b/crates/atuin-server-sqlite/Cargo.toml @@ -10,8 +10,8 @@ homepage = { workspace = true } repository = { workspace = true } [dependencies] -atuin-common = { path = "../atuin-common", version = "18.10.0" } -atuin-server-database = { path = "../atuin-server-database", version = "18.10.0" } +atuin-common = { path = "../atuin-common", version = "18.11.0" } +atuin-server-database = { path = "../atuin-server-database", version = "18.11.0" } eyre = { workspace = true } tracing = { workspace = true } @@ -20,5 +20,5 @@ serde = { workspace = true } sqlx = { workspace = true, features = ["sqlite", "regexp"] } async-trait = { workspace = true } uuid = { workspace = true } -metrics = "0.21.1" +metrics = "0.24" futures-util = "0.3" diff --git a/crates/atuin-server-sqlite/src/lib.rs b/crates/atuin-server-sqlite/src/lib.rs index 9cc1e8a7..83d05ea5 100644 --- a/crates/atuin-server-sqlite/src/lib.rs +++ b/crates/atuin-server-sqlite/src/lib.rs @@ -232,17 +232,6 @@ impl Database for Sqlite { } #[instrument(skip_all)] - async fn total_history(&self) -> DbResult<i64> { - let res: (i64,) = sqlx::query_as("select count(1) from history") - .fetch_optional(&self.pool) - .await - .map_err(fix_error)? - .unwrap_or((0,)); - - Ok(res.0) - } - - #[instrument(skip_all)] async fn count_history(&self, user: &User) -> DbResult<i64> { // The cache is new, and the user might not yet have a cache value. // They will have one as soon as they post up some new history, but handle that |
