Skip to content

Commit

Permalink
perf: update buf size
Browse files Browse the repository at this point in the history
  • Loading branch information
beeb committed Aug 6, 2024
1 parent ce11f4c commit 2db6365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub fn sha256_digest(_dependency: &HttpDependency) -> String {
/// Hash the contents of a Reader with SHA256
pub fn hash_content<R: Read>(content: &mut R) -> [u8; 32] {
let mut hasher = <Sha256 as Digest>::new();
let mut buf = [0; 8192];
let mut buf = [0; 1024];
while let Ok(size) = content.read(&mut buf) {
if size == 0 {
break;
Expand Down

0 comments on commit 2db6365

Please sign in to comment.