Skip to content

Commit 3d8f4a8

Browse files
authored
Fix admin router syntax for axum 0.8 (#1675)
1 parent 6b0cb60 commit 3d8f4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/nativelink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ async fn inner_main(
670670
svc = svc.nest_service(
671671
path,
672672
Router::new().route(
673-
"/scheduler/:instance_name/set_drain_worker/:worker_id/:is_draining",
673+
"/scheduler/{instance_name}/set_drain_worker/{worker_id}/{is_draining}",
674674
axum::routing::post(
675675
move |params: axum::extract::Path<(String, String, String)>| async move {
676676
let (instance_name, worker_id, is_draining) = params.0;

0 commit comments

Comments
 (0)