mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 07:06:53 +00:00
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:
@@ -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)>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user