Skip to content

Commit

Permalink
What?
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Jan 7, 2025
1 parent 4ee445f commit 0adbb80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ impl ApiRepo {
.await?;
file.seek(SeekFrom::Start(length as u64)).await?;
file.write_all(&committed.to_le_bytes()).await?;
file.flush().await;
}
}
let mut f = tokio::fs::OpenOptions::new()
Expand Down Expand Up @@ -722,6 +723,7 @@ impl ApiRepo {
.await?;
file.seek(SeekFrom::Start(start as u64)).await?;
file.write_all(&buf).await?;
file.flush().await?;
Ok((start, stop))
}

Expand Down

0 comments on commit 0adbb80

Please sign in to comment.