Limit the number of current request for a certain amount of time for some endpoints.

This commit is contained in:
Greg Burri 2025-03-03 10:10:55 +01:00
parent b2572ebfe5
commit b40ee5f765
4 changed files with 34 additions and 12 deletions

View file

@ -10,7 +10,7 @@ common = { path = "../common" }
axum = { version = "0.8", features = ["macros"] }
axum-extra = { version = "0.10", features = ["cookie", "query"] }
tokio = { version = "1", features = ["full"] }
tower = { version = "0.5", features = ["util"] }
tower = { version = "0.5", features = ["util", "limit", "buffer"] }
tower-http = { version = "0.6", features = ["fs", "trace"] }
tracing = "0.1"