Skip to content

Commit

Permalink
Minor refactor, bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchambers committed May 31, 2021
1 parent a5f0720 commit c258004
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bupstash"
version = "0.9.0"
version = "0.9.1"
authors = ["Andrew Chambers <ac@acha.ninja>"]
edition = "2018"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ fn receive_htree(
Ok(())
}

fn write_index_as_tarball(
fn write_indexed_data_as_tarball(
read_data: &mut dyn FnMut() -> Result<Option<Vec<u8>>, anyhow::Error>,
index: &index::CompressedIndex,
out: &mut dyn std::io::Write,
Expand Down Expand Up @@ -1402,7 +1402,7 @@ fn receive_indexed_htree_as_tarball(
Ok(None)
};

write_index_as_tarball(&mut read_data, index, out)
write_indexed_data_as_tarball(&mut read_data, index, out)
}

fn receive_partial_htree(
Expand Down Expand Up @@ -1534,7 +1534,7 @@ fn receive_partial_htree(
};

if pick.is_subtar {
write_index_as_tarball(&mut read_data, &pick.index, out)?;
write_indexed_data_as_tarball(&mut read_data, &pick.index, out)?;
} else {
while let Some(data) = read_data()? {
out.write_all(&data)?;
Expand Down

0 comments on commit c258004

Please sign in to comment.