Skip to content

Commit

Permalink
fix(tasks): return error if update channel shuts down (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward authored Jul 8, 2021
1 parent cff66ff commit 0f285a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/storage_deal.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (de *storageDealExecutor) executeAndMonitorDeal(ctx context.Context, update
return fmt.Errorf("deal stage %q %s", stage, msg)
case info, ok := <-updates:
if !ok {
return nil
return fmt.Errorf("Client error: Update channel closed before deal is active")
}

if !proposalCid.Equals(info.ProposalCid) {
Expand Down

0 comments on commit 0f285a6

Please sign in to comment.