mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
fix(replication): satisfy delete admission clippy lint
This commit is contained in:
@@ -7116,12 +7116,9 @@ impl DefaultObjectUsecase {
|
|||||||
&fallback_source
|
&fallback_source
|
||||||
};
|
};
|
||||||
match metadata_sys::get_replication_config(&bucket).await {
|
match metadata_sys::get_replication_config(&bucket).await {
|
||||||
Ok((config, _)) => delete_replication_state_from_config(
|
Ok((config, _)) => {
|
||||||
&config,
|
delete_replication_state_from_config(&config, source, version_id_clone.as_ref().and(source.version_id), false)
|
||||||
source,
|
}
|
||||||
version_id_clone.as_ref().and_then(|_| source.version_id),
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
Err(StorageError::ConfigNotFound) => None,
|
Err(StorageError::ConfigNotFound) => None,
|
||||||
Err(err) => return Err(ApiError::from(err).into()),
|
Err(err) => return Err(ApiError::from(err).into()),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user