mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 10:27:46 +08:00
Add provider key cycle stats reset handling
This commit is contained in:
@@ -731,6 +731,10 @@ fn local_candidate_failure_should_record_pool_error(
|
||||
classification: LocalFailoverClassification,
|
||||
status_code: u16,
|
||||
) -> bool {
|
||||
if status_code == 400 {
|
||||
return false;
|
||||
}
|
||||
|
||||
local_candidate_failure_should_invalidate_affinity(classification, status_code)
|
||||
}
|
||||
|
||||
@@ -1441,6 +1445,10 @@ mod tests {
|
||||
LocalFailoverClassification::StopErrorPattern,
|
||||
400,
|
||||
));
|
||||
assert!(!local_candidate_failure_should_record_pool_error(
|
||||
LocalFailoverClassification::RetryUpstreamFailure,
|
||||
400,
|
||||
));
|
||||
assert!(local_candidate_failure_should_record_pool_error(
|
||||
LocalFailoverClassification::RetryUpstreamFailure,
|
||||
429,
|
||||
|
||||
Reference in New Issue
Block a user