Skip to content

Commit

Permalink
fix: chunkSize -> shareSize
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Mar 8, 2024
1 parent fa9e268 commit 4b3217b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datasquare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func BenchmarkEDSRootsWithErasuredNMT(b *testing.B) {
edsSizeMiBytes := 4 * odsSizeMiBytes
b.Run(
fmt.Sprintf("%dx%dx%d ODS=%dMB, EDS=%dMB", odsSize, odsSize,
int(square.chunkSize),
int(square.shareSize),
odsSizeMiBytes, edsSizeMiBytes),
func(b *testing.B) {
for n := 0; n < b.N; n++ {
Expand Down
4 changes: 2 additions & 2 deletions extendeddatasquare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ func genRandDS(width int, shareSize int) [][]byte {
return ds
}

func genRandSortedDS(width int, chunkSize int, namespaceSize int) [][]byte {
ds := genRandDS(width, chunkSize)
func genRandSortedDS(width int, shareSize int, namespaceSize int) [][]byte {
ds := genRandDS(width, shareSize)

// Sort the shares in the square based on their namespace
sort.Slice(ds, func(i, j int) bool {
Expand Down

0 comments on commit 4b3217b

Please sign in to comment.