Fix again the dots

This commit is contained in:
Clément Renault 2023-09-12 17:51:36 +02:00
parent 9b01506cee
commit 309c33a418
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -900,8 +900,8 @@ fn load_snapshot(this: &IndexScheduler, path: &str) -> anyhow::Result<()> {
let src = format!("{path}/indexes"); let src = format!("{path}/indexes");
let uuids = s3.list(src.clone(), None)?.into_iter().flat_map(|lbr| { let uuids = s3.list(src.clone(), None)?.into_iter().flat_map(|lbr| {
lbr.contents.into_iter().map(|o| { lbr.contents.into_iter().map(|o| {
let mut iter = o.key.rsplit('.'); let (_, name) = o.key.rsplit_once('/').unwrap();
iter.nth(1).unwrap().to_string() name.to_string()
}) })
}); });
for uuid in uuids { for uuid in uuids {