Skip to content

Commit

Permalink
misc: debug where is the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Feb 12, 2024
1 parent 3f357ed commit 5072c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rattler_installs_packages/src/index/file_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ impl<'a> LockedWriter<'a> {
/// Commit the content currently written to this instance. Returns a [`LockedReader`] which can
/// be used to read from the file again.

Check warning on line 175 in crates/rattler_installs_packages/src/index/file_store.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

Diff in /home/runner/work/rip/rip/crates/rattler_installs_packages/src/index/file_store.rs
pub fn commit(self) -> io::Result<LockedReader<'a>> {
self.f.as_file().sync_data()?;
let mut file = fs::File::from_parts(self.f.persist(self.path)?, self.path);
file.rewind()?;
self.f.as_file().sync_data().expect("CANT SYNC DATA");
let mut file = fs::File::from_parts(self.f.persist(self.path).expect("CANT PERSIS DATA"), self.path);
file.rewind().expect("CANT REWIND DATA");
Ok(LockedReader {
file,
_data: Default::default(),
Expand Down

0 comments on commit 5072c70

Please sign in to comment.