fix(node): ClientRetrieve stops on cancel
When a deal is cancelled, any in progress calls to ClientRetrieve or ClientRetrieveWithEvents should return
This commit is contained in:
parent
4433c3cd7c
commit
92ec239202
@ -680,6 +680,8 @@ func readSubscribeEvents(ctx context.Context, dealID retrievalmarket.DealID, sub
|
||||
return nil
|
||||
case rm.DealStatusRejected:
|
||||
return xerrors.Errorf("Retrieval Proposal Rejected: %s", state.Message)
|
||||
case rm.DealStatusCancelled:
|
||||
return xerrors.Errorf("Retrieval was cancelled externally: %s", state.Message)
|
||||
case
|
||||
rm.DealStatusDealNotFound,
|
||||
rm.DealStatusErrored:
|
||||
|
Loading…
Reference in New Issue
Block a user