Skip to content

Commit

Permalink
Allow ClientEventDataTransferFailed event to transition from StorageD…
Browse files Browse the repository at this point in the history
…ealTransferring!
  • Loading branch information
ingar committed May 15, 2020
1 parent b766093 commit 77d65c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storagemarket/impl/clientstates/client_fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var ClientEvents = fsm.Events{
return nil
}),
fsm.Event(storagemarket.ClientEventDataTransferFailed).
From(storagemarket.StorageDealWaitingForDataRequest).To(storagemarket.StorageDealFailing).
FromMany(storagemarket.StorageDealWaitingForDataRequest, storagemarket.StorageDealTransferring).To(storagemarket.StorageDealFailing).
Action(func(deal *storagemarket.ClientDeal, err error) error {
deal.Message = xerrors.Errorf("failed to initiate data transfer: %w", err).Error()
return nil
Expand Down

0 comments on commit 77d65c9

Please sign in to comment.