diff --git a/storage/paths/db_index.go b/storage/paths/db_index.go index 90f3f21aa..203b071a9 100644 --- a/storage/paths/db_index.go +++ b/storage/paths/db_index.go @@ -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