experiment

This commit is contained in:
Shrenuj Bansal 2023-08-22 11:48:38 -04:00
parent 459255d1f0
commit 068416ecfc

View File

@ -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