From 2db636528127d5f86bd076450c045ec2f96953c0 Mon Sep 17 00:00:00 2001 From: beeb <703631+beeb@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:20:40 +0200 Subject: [PATCH] perf: update buf size --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 78e9adf..3921e73 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -177,7 +177,7 @@ pub fn sha256_digest(_dependency: &HttpDependency) -> String { /// Hash the contents of a Reader with SHA256 pub fn hash_content(content: &mut R) -> [u8; 32] { let mut hasher = ::new(); - let mut buf = [0; 8192]; + let mut buf = [0; 1024]; while let Ok(size) = content.read(&mut buf) { if size == 0 { break;