Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
geetanshjuneja committed Jan 27, 2025
1 parent 7c528f2 commit 49745ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/services/s3/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,10 @@ impl S3Core {
body.clone()
.for_each(|b| crc = crc32c::crc32c_append(crc, &b));
Some(BASE64_STANDARD.encode(crc.to_be_bytes()))
},
}
Some(ChecksumAlgorithm::Crc64nvme) => {
let mut c = crc64fast_nvme::Digest::new();
body.clone()
.for_each(|b| c.write(&b));
body.clone().for_each(|b| c.write(&b));
Some(BASE64_STANDARD.encode(c.sum64().to_be_bytes()))
}
}
Expand Down

0 comments on commit 49745ef

Please sign in to comment.