Apply suggestions from code review

Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
marin 2021-06-01 11:18:37 +02:00 committed by GitHub
parent 6609f9e3be
commit df6ba0e824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View file

@ -24,7 +24,7 @@ const DATA_FILE_NAME: &str = "documents.jsonl";
impl Index {
pub fn dump(&self, path: impl AsRef<Path>) -> anyhow::Result<()> {
// acquire write txn make sure any ongoing write is finnished before we start.
// acquire write txn make sure any ongoing write is finished before we start.
let txn = self.env.write_txn()?;
self.dump_documents(&txn, &path)?;