mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-04 18:45:46 +01:00
Fix again the dots
This commit is contained in:
parent
9b01506cee
commit
309c33a418
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user