fix(scanner): scope long walk timeouts (#4376)

* fix(scanner): scope long walk timeouts

* fix(scanner): bound IAM config walks

---------

Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
Henry Guo
2026-07-08 17:06:51 +08:00
committed by GitHub
parent 7fb95d4fc0
commit 506cd156bb
11 changed files with 236 additions and 18 deletions
@@ -718,13 +718,13 @@ mod tests {
use std::sync::Mutex;
type MetadataResult = SwiftResult<Option<HashMap<String, String>>>;
type ResultQueue<T> = Mutex<VecDeque<T>>;
#[derive(Default)]
#[allow(clippy::type_complexity)]
struct MockExpirationObjectBackend {
expiring_objects: Mutex<Vec<ExpirationCandidate>>,
metadata_results: Mutex<VecDeque<MetadataResult>>,
delete_results: Mutex<VecDeque<SwiftResult<()>>>,
metadata_results: ResultQueue<MetadataResult>,
delete_results: ResultQueue<SwiftResult<()>>,
deleted_objects: Mutex<Vec<(String, String, String)>>,
}