Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add optimisation for http cache #216

Merged
merged 22 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
misc: debug where is the problem
  • Loading branch information
nichmor committed Feb 12, 2024
commit 5072c7013c7d64f4a503744e281746f3792e9623
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
@@ -172,11 +172,11 @@

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

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(),
Loading