implement index dump

This commit is contained in:
Marin Postma
2021-05-24 18:16:35 +02:00
parent 7ad553670f
commit 4acbe8e473
8 changed files with 79 additions and 55 deletions

View File

@ -152,8 +152,8 @@ impl HeedUuidStore {
let entry = entry?;
let uuid = Uuid::from_slice(entry.1)?;
uuids.insert(uuid);
serde_json::to_writer(&mut dump_file, &serde_json::json!({ "uid": entry.0, "uuid": uuid }))?;
dump_file.write(b"\n").unwrap();
serde_json::to_writer(&mut dump_file, &serde_json::json!({ "uid": entry.0, "uuid": uuid
}))?; dump_file.write(b"\n").unwrap();
}
Ok(uuids)