Skip to content

Commit

Permalink
fix(storagemarket): lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Mar 5, 2020
1 parent fa813e8 commit b24b172
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions storagemarket/impl/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ func (c *Client) Start(ctx context.Context, p ClientDealProposal) (cid.Cid, erro
c.conns[deal.ProposalCid] = s
c.connsLk.Unlock()

c.statemachines.Send(deal.ProposalCid, storagemarket.ClientEventOpen)
err = c.statemachines.Send(deal.ProposalCid, storagemarket.ClientEventOpen)
if err != nil {
return cid.Undef, xerrors.Errorf("initializing state machine: %w", err)
}

return deal.ProposalCid, c.discovery.AddPeer(p.Data.Root, retrievalmarket.RetrievalPeer{
Address: dealProposal.Provider,
Expand Down Expand Up @@ -215,7 +218,7 @@ func (c *Client) GetDeal(d cid.Cid) (*storagemarket.ClientDeal, error) {
}

func (c *Client) Stop() {
c.statemachines.Stop(context.TODO())
_ = c.statemachines.Stop(context.TODO())
}

func (c *Client) Node() storagemarket.StorageClientNode {
Expand Down

0 comments on commit b24b172

Please sign in to comment.