aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-08-30 14:28:48 +0200
committerAlex Auvolat <alex@adnab.me>2023-08-30 14:29:03 +0200
commit2996dc875fc378ec3597bfa3bdb8ba8951e1865c (patch)
tree16c5ab74ee56de7e944691abbeb291976bcd9db2 /src/api
parenta2e0e34db57b326ad5c9e7c9218fb9e29900e705 (diff)
downloadgarage-2996dc875fc378ec3597bfa3bdb8ba8951e1865c.tar.gz
garage-2996dc875fc378ec3597bfa3bdb8ba8951e1865c.zip
lifecycle worker: implement main functionality
Diffstat (limited to 'src/api')
-rw-r--r--src/api/s3/lifecycle.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/s3/lifecycle.rs b/src/api/s3/lifecycle.rs
index 278cf26d..2d621eac 100644
--- a/src/api/s3/lifecycle.rs
+++ b/src/api/s3/lifecycle.rs
@@ -239,8 +239,8 @@ impl Filter {
fn internal_into_garage_lifecycle_filter(self) -> GarageLifecycleFilter {
GarageLifecycleFilter {
prefix: self.prefix.map(|x| x.0),
- size_gt: self.size_gt.map(|x| x.0 as usize),
- size_lt: self.size_lt.map(|x| x.0 as usize),
+ size_gt: self.size_gt.map(|x| x.0 as u64),
+ size_lt: self.size_lt.map(|x| x.0 as u64),
}
}