Skip to content

Commit

Permalink
chore: cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
munna0908 committed Feb 11, 2025
1 parent e33c9fd commit 1c859a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions codex/erasure/erasure.nim
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ type
EncodeTask = object
success: Atomic[bool]
erasure: ptr Erasure
blockSize: int
blocks: ptr UncheckedArray[ptr UncheckedArray[byte]]
parity: ptr UncheckedArray[ptr UncheckedArray[byte]]
blocksLen, parityLen: int
blockSize, blocksLen, parityLen: int
signal: ThreadSignalPtr

DecodeTask = object
Expand All @@ -106,8 +105,8 @@ type
blocks: ptr UncheckedArray[ptr UncheckedArray[byte]]
parity: ptr UncheckedArray[ptr UncheckedArray[byte]]
recovered: ptr UncheckedArray[ptr UncheckedArray[byte]]
blockSize: int
blocksLen, parityLen, recoveredLen: int
blockSize, blocksLen: int
parityLen, recoveredLen: int
signal: ThreadSignalPtr

func indexToPos(steps, idx, step: int): int {.inline.} =
Expand Down
2 changes: 1 addition & 1 deletion tests/codex/testerasure.nim
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ suite "Erasure encode/decode":
let present = await store.hasBlock(manifest.treeCid, d)
check present.tryGet()

test "handles edge case of 0 parity blocks":
test "Handles edge case of 0 parity blocks":
const
buffers = 20
parity = 0
Expand Down

0 comments on commit 1c859a8

Please sign in to comment.