Skip to content

Commit

Permalink
fix introduced fsm bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonwells committed Apr 13, 2020
1 parent 0c862db commit 3b4659d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retrievalmarket/impl/clientstates/client_fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ var ClientEvents = fsm.Events{
fsm.Event(rm.ClientEventOpen).
From(rm.DealStatusNew).ToNoChange(),
fsm.Event(rm.ClientEventPaymentChannelErrored).
From(rm.DealStatusPaymentChannelCreating).To(rm.DealStatusFailed).
FromMany(rm.DealStatusAccepted, rm.DealStatusPaymentChannelCreating).To(rm.DealStatusFailed).
Action(func(deal *rm.ClientDealState, err error) error {
deal.Message = xerrors.Errorf("getting payment channel: %w", err).Error()
deal.Message = xerrors.Errorf("creating/getting payment channel: %w", err).Error()
return nil
}),
fsm.Event(rm.ClientEventPaymentChannelCreateInitiated).
Expand Down

0 comments on commit 3b4659d

Please sign in to comment.