Skip to content

Commit 686cff6

Browse files
authored
Merge pull request #11 from dfinity/igornovg/axum08
upgrade axum to 0.8
2 parents 530f8e8 + 6938c0a commit 686cff6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ahash = "0.8.11"
1212
anyhow = "1.0.93"
1313
arc-swap = "1.7.1"
1414
async-trait = "0.1.83"
15-
axum = "0.7.9"
15+
axum = "0.8.1"
1616
backoff = { version = "0.4.0", features = ["tokio"] }
1717
base64 = "0.22.1"
1818
bytes = "1.9.0"

src/http/cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ mod tests {
614614
let cache = Arc::new(Cache::new(opts, KeyExtractorTest, &Registry::default()).unwrap());
615615

616616
let mut app = Router::new()
617-
.route("/:key", get(handler))
617+
.route("/{key}", get(handler))
618618
.layer(from_fn_with_state(Arc::clone(&cache), middleware));
619619

620620
// First request doesn't hit the cache, but is stored in the cache
@@ -727,7 +727,7 @@ mod tests {
727727
let cache = Arc::new(Cache::new(opts, KeyExtractorTest, &Registry::default()).unwrap());
728728

729729
let app = Router::new()
730-
.route("/:key", get(handler_proxy_cache_lock))
730+
.route("/{key}", get(handler_proxy_cache_lock))
731731
.layer(from_fn_with_state(Arc::clone(&cache), middleware));
732732

733733
let req_count = 50;

0 commit comments

Comments
 (0)