Make Storage methods async

This will better support concurrent requests.
This commit is contained in:
Dustin J. Mitchell 2025-07-11 17:28:05 -04:00
parent 4de5c9a345
commit 7559364017
No known key found for this signature in database
13 changed files with 597 additions and 412 deletions

27
Cargo.lock generated
View file

@ -308,6 +308,17 @@ version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
[[package]]
name = "async-trait"
version = "0.1.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "autocfg"
version = "1.5.0"
@ -1588,11 +1599,13 @@ name = "taskchampion-sync-server-core"
version = "0.6.2-pre"
dependencies = [
"anyhow",
"async-trait",
"chrono",
"env_logger",
"log",
"pretty_assertions",
"thiserror",
"tokio",
"uuid",
]
@ -1601,12 +1614,14 @@ name = "taskchampion-sync-server-storage-sqlite"
version = "0.6.2-pre"
dependencies = [
"anyhow",
"async-trait",
"chrono",
"pretty_assertions",
"rusqlite",
"taskchampion-sync-server-core",
"tempfile",
"thiserror",
"tokio",
"uuid",
]
@ -1709,9 +1724,21 @@ dependencies = [
"signal-hook-registry",
"slab",
"socket2",
"tokio-macros",
"windows-sys 0.52.0",
]
[[package]]
name = "tokio-macros"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "tokio-util"
version = "0.7.15"