anotha one

This commit is contained in:
Shrenuj Bansal 2023-08-22 12:19:18 -04:00
parent 068416ecfc
commit 15247486ae

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.Is(err, errAlreadyLocked) {
retries--
if retries == 0 {
return err