refactor(filemeta): ChecksumInfo hash use Bytes

This commit is contained in:
Nugine
2025-06-15 21:01:38 +08:00
parent 87423bfb8c
commit 3a567768c1
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
use bytes::Bytes;
use pin_project_lite::pin_project;
use rustfs_utils::{HashAlgorithm, read_full, write_all};
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite};
@@ -174,7 +175,7 @@ pub async fn bitrot_verify<R: AsyncRead + Unpin + Send>(
want_size: usize,
part_size: usize,
algo: HashAlgorithm,
_want: Vec<u8>,
_want: Bytes, // FIXME: useless parameter?
mut shard_size: usize,
) -> std::io::Result<()> {
let mut hash_buf = vec![0; algo.size()];