Skip to content

Commit

Permalink
websrv: Fix build
Browse files Browse the repository at this point in the history
uklotzde committed Nov 2, 2024
1 parent fd4638b commit 12863dd
Showing 3 changed files with 25 additions and 58 deletions.
74 changes: 20 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -40,14 +40,14 @@ aoide-websrv-warp-sqlite = { version = "=0.8.0", path = "crates/websrv-warp-sqli
# Commonly used dependencies.
# Also serves for documenting the opionionated selection of third-party crates.
aho-corasick = "1.1.3"
anyhow = "1.0.91"
anyhow = "1.0.92"
bitflags = "2.6.0"
data-encoding = "2.6.0"
derive_more = "1.0.0"
diesel = { version = "2.2.4", default-features = false, features = ["sqlite"] }
digest = "0.10.7"
image = "0.25.4"
jiff = "0.1.13"
jiff = "0.1.14"
log = "0.4.22"
mime = "0.3.17"
regex = "1.11.1"
@@ -57,7 +57,7 @@ static_assertions = "1.1.0"
strum = "0.26.3"
tantivy = "0.22.0"
time = "0.3.36"
thiserror = "1.0.65"
thiserror = "1.0.66"
tokio = "1.41.0"
url = "2.5.2"

3 changes: 2 additions & 1 deletion websrv/src/routing/api.rs
Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@ pub(crate) fn create_filters(
rt: &tokio::runtime::Handle,
shared_connection_gatekeeper: Arc<DatabaseConnectionGatekeeper>,
abort_flag: Arc<AtomicBool>,
) -> BoxedFilter<(impl Reply)> {
) -> BoxedFilter<(impl Reply,)> {
// The trailing comma is required!
let shared_connection_gatekeeper =
warp::any().map(move || Arc::clone(&shared_connection_gatekeeper));
let abort_flag = warp::any().map(move || Arc::clone(&abort_flag));

0 comments on commit 12863dd

Please sign in to comment.