Skip to content

Commit

Permalink
misc: rename verify_cache_bom to verify_cache_bom_and_version
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Feb 13, 2024
1 parent 668d3ed commit a919e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rattler_installs_packages/src/index/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ where
R: Read + Seek,
{
let mut buff_reader = BufReader::new(&mut f);
verify_cache_bom(&mut buff_reader, bom_key, version)?;
verify_cache_bom_and_version(&mut buff_reader, bom_key, version)?;

let mut struct_size_buffer = [0; 8];
buff_reader.read_exact(&mut struct_size_buffer).unwrap();
Expand Down Expand Up @@ -293,8 +293,8 @@ fn write_cache_bom_and_metadata<W: Write + Seek>(
writer.stream_position()
}

/// Verify that cache BOM is the same and up-to-date
fn verify_cache_bom<R: Read + Seek>(
/// Verify that cache BOM and metadata is the same and up-to-date
fn verify_cache_bom_and_version<R: Read + Seek>(
reader: &mut R,
bom_key: &str,
version: u8,
Expand Down

0 comments on commit a919e4c

Please sign in to comment.