Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrenuj Bansal committed Aug 22, 2023
1 parent 459255d commit 068416e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/paths/db_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ func (dbi *DBIndex) StorageLock(ctx context.Context, sector abi.SectorID, read s
for {
locked, err := dbi.lock(ctx, sector, read, write, lockUuid)
// if err is not nil and is not because we cannot acquire lock, retry
if err != nil && !errors.As(err, errAlreadyLocked) {
if err != nil && !errors.As(err, &errAlreadyLocked) {
retries--
if retries == 0 {
return err
Expand Down

0 comments on commit 068416e

Please sign in to comment.