Lint
This commit is contained in:
parent
60d09579be
commit
0f6da17cd1
@ -167,8 +167,16 @@ var terminationsCmd = &cli.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
label, err := prop.Label.ToString()
|
||||||
|
if err != nil {
|
||||||
|
labelBs, err := prop.Label.ToBytes()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
label = string(labelBs)
|
||||||
|
}
|
||||||
if find {
|
if find {
|
||||||
fmt.Printf("%s, %d, %d, %s, %s, %s\n", msg.To, sector.SectorNumber, deal, prop.Client, prop.PieceCID, prop.Label)
|
fmt.Printf("%s, %d, %d, %s, %s, %s\n", msg.To, sector.SectorNumber, deal, prop.Client, prop.PieceCID, label)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -271,7 +271,7 @@ func (mapi *CurrentDealInfoMockAPI) ChainGetMessage(ctx context.Context, c cid.C
|
|||||||
for k, dl := range mapi.MarketDeals {
|
for k, dl := range mapi.MarketDeals {
|
||||||
dealIDs = append(dealIDs, k.DealID)
|
dealIDs = append(dealIDs, k.DealID)
|
||||||
deals = append(deals, market.ClientDealProposal{
|
deals = append(deals, market.ClientDealProposal{
|
||||||
Proposal: market8.DealProposal(market.DealProposal(dl.Proposal)),
|
Proposal: market8.DealProposal(dl.Proposal),
|
||||||
ClientSignature: crypto.Signature{
|
ClientSignature: crypto.Signature{
|
||||||
Data: []byte("foo bar cat dog"),
|
Data: []byte("foo bar cat dog"),
|
||||||
Type: crypto.SigTypeBLS,
|
Type: crypto.SigTypeBLS,
|
||||||
|
Loading…
Reference in New Issue
Block a user