Skip to content

Commit

Permalink
refactor: not needed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Nov 20, 2023
1 parent e3378de commit 16f7480
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/file/redundancy/getter/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ func (g *getter) cautiousStrategy(ctx context.Context) error {
// erasureDecode perform Reed-Solomon recovery on data
// assumes it is called after filling up cache with the required amount of shards and parities
func (g *getter) erasureDecode() error {
shards := len(g.sAddresses)
parities := len(g.pAddresses)
enc, err := reedsolomon.New(shards, parities)
enc, err := reedsolomon.New(len(g.sAddresses), len(g.pAddresses))
if err != nil {
return err
}
Expand Down

0 comments on commit 16f7480

Please sign in to comment.