Skip to content

Commit 3d8d35b

Browse files
authored
Merge pull request #419 from filecoin-project/feat/fr32/refactor
Review and refactor the `fr32` module
2 parents fa95d28 + f61951b commit 3d8d35b

File tree

2 files changed

+435
-259
lines changed

2 files changed

+435
-259
lines changed

sector-base/src/api/disk_backed_storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ pub mod tests {
421421
assert_eq!(504, buf.len());
422422

423423
// also ensure this is the amount we calculate
424-
let expected_padded_bytes = FR32_PADDING_MAP.expand_bytes(contents.len());
424+
let expected_padded_bytes =
425+
FR32_PADDING_MAP.transform_byte_offset(contents.len(), true);
425426
assert_eq!(expected_padded_bytes, output_bytes_written);
426427

427428
// ensure num_unsealed_bytes returns the number of data bytes written.

0 commit comments

Comments
 (0)