From 309c33a4188918e03e719883260300426d69a171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 12 Sep 2023 17:51:36 +0200 Subject: [PATCH] Fix again the dots --- index-scheduler/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index 2a875b0d8..43701d653 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -900,8 +900,8 @@ fn load_snapshot(this: &IndexScheduler, path: &str) -> anyhow::Result<()> { let src = format!("{path}/indexes"); let uuids = s3.list(src.clone(), None)?.into_iter().flat_map(|lbr| { lbr.contents.into_iter().map(|o| { - let mut iter = o.key.rsplit('.'); - iter.nth(1).unwrap().to_string() + let (_, name) = o.key.rsplit_once('/').unwrap(); + name.to_string() }) }); for uuid in uuids {