Skip to content

Commit 02e7240

Browse files
committed
change warp to axum
1 parent 93a243e commit 02e7240

File tree

8 files changed

+343
-364
lines changed

8 files changed

+343
-364
lines changed

Cargo.lock

Lines changed: 123 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ path = "src/main.rs"
1919

2020
[dependencies]
2121
entity = { path = "../entity" }
22+
axum = { version = "0.8.5", features = ["multipart"] }
2223
# web
2324
hyper = { workspace = true, features = ["stream", "server", "http1", "http2", "tcp"] }
2425
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "io-std", "sync", "time", "tokio-macros"] }

server/src/acme.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,7 @@ impl ACMEManager {
466466
for domain in &config.domains {
467467
if let Some(alias) = domain.alias.as_ref() {
468468
if !alias.is_empty() {
469-
alias_map.insert(
470-
domain.domain.clone(),
471-
alias.to_vec(),
472-
);
469+
alias_map.insert(domain.domain.clone(), alias.to_vec());
473470
}
474471
}
475472
}

0 commit comments

Comments
 (0)