mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-09-02 02:08:43 +00:00
replace Option CRDT by explicit CancelingOption and MergingOption types
This commit is contained in:
@@ -271,7 +271,7 @@ async fn process_object(
|
||||
let lifecycle_policy: &[LifecycleRule] = bucket
|
||||
.state
|
||||
.as_option()
|
||||
.and_then(|s| s.lifecycle_config.get().as_deref())
|
||||
.and_then(|s| s.lifecycle_config.get().inner().map(|x| &x[..]))
|
||||
.unwrap_or_default();
|
||||
|
||||
if lifecycle_policy.iter().all(|x| !x.enabled) {
|
||||
|
||||
Reference in New Issue
Block a user