Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Hlib Kanunnikov <[email protected]>
  • Loading branch information
vgonkivs and Wondertan authored Dec 12, 2024
1 parent a70b7e7 commit d303d6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion share/shwap/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Getter interface {
// GetEDS gets the full EDS identified by the given extended header.
GetEDS(context.Context, *header.ExtendedHeader) (*rsmt2d.ExtendedDataSquare, error)

// GetRow gets all shares from the specified row.
// GetRow gets Row by its index committed to the given extended header.
GetRow(ctx context.Context, header *header.ExtendedHeader, rowIdx int) (Row, error)
// GetNamespaceData gets all shares from an EDS within the given namespace.
// Shares are returned in a row-by-row order if the namespace spans multiple rows.
Expand Down
4 changes: 2 additions & 2 deletions store/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ func (g *Getter) GetRow(ctx context.Context, h *header.ExtendedHeader, rowIdx in
if errors.Is(err, ErrNotFound) {
return shwap.Row{}, shwap.ErrNotFound
}
return shwap.Row{}, fmt.Errorf("get accessor from store:%w", err)
return shwap.Row{}, fmt.Errorf("getting accessor from store: %w", err)
}
axisHalf, err := acc.AxisHalf(ctx, rsmt2d.Row, rowIdx)
if err != nil {
return shwap.Row{}, fmt.Errorf("get axis half from accessor:%w", err)
return shwap.Row{}, fmt.Errorf("getting axis half from accessor: %w", err)
}
return axisHalf.ToRow(), nil
}
Expand Down

0 comments on commit d303d6e

Please sign in to comment.