Skip to content

Commit

Permalink
fix(release deals): skip update state if deal expired
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5459 committed Sep 25, 2023
1 parent 03f8555 commit 6fde776
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storageprovider/deal_assigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ func (ps *dealAssigner) ReleaseDeals(ctx context.Context, miner address.Address,
if err != nil {
return fmt.Errorf("failed to get deal %d for miner %s: %w", dealID, miner.String(), err)
}
if deal.State == storagemarket.StorageDealExpired {
continue
}
if err := canBeRelease(deal); err != nil {
return err
}
Expand Down

0 comments on commit 6fde776

Please sign in to comment.