fix(pool): isolate dynamic model quota buckets and 429 scheduling

This commit is contained in:
zhefox
2026-09-02 15:23:23 +08:00
parent 2cd20da1ec
commit dbbe7b22ab
37 changed files with 1491 additions and 78 deletions
@@ -8,6 +8,7 @@ pub struct PublicRequestContext<Decision> {
pub request_query_string: Option<String>,
pub request_content_type: Option<String>,
pub host_header: Option<String>,
pub client_ip: Option<String>,
pub control_decision: Option<Decision>,
}
@@ -32,6 +33,7 @@ impl<Decision> PublicRequestContext<Decision> {
request_query_string: uri.query().map(ToOwned::to_owned),
request_content_type: header_value(headers, http::header::CONTENT_TYPE),
host_header: header_value(headers, http::header::HOST),
client_ip: None,
control_decision,
}
}