fix linter and merge master
This commit is contained in:
parent
22217b7cae
commit
bbd0cdd212
@ -11,8 +11,6 @@ import (
|
|||||||
lapi "github.com/filecoin-project/lotus/api"
|
lapi "github.com/filecoin-project/lotus/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mockDealInfos []lapi.DealInfo
|
|
||||||
|
|
||||||
func InspectDealCmd(ctx context.Context, api lapi.FullNode, proposalCid string, dealId int) error {
|
func InspectDealCmd(ctx context.Context, api lapi.FullNode, proposalCid string, dealId int) error {
|
||||||
ctx, cancel := context.WithCancel(ctx)
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
@ -69,10 +67,9 @@ func renderDeal(di lapi.DealInfo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if stg.Name == "StorageDealStartDataTransfer" {
|
if stg.Name == "StorageDealStartDataTransfer" {
|
||||||
for _, dt_stg := range di.DataTransfer.Stages.Stages {
|
for _, dtStg := range di.DataTransfer.Stages.Stages {
|
||||||
|
fmt.Printf(" %s %s %s\n", color.YellowString(dtStg.CreatedTime.Time().UTC().Round(time.Second).Format(time.Stamp)), color.BlueString("Data transfer stage:"), color.BlueString(dtStg.Name))
|
||||||
fmt.Printf(" %s %s %s\n", color.YellowString(dt_stg.CreatedTime.Time().UTC().Round(time.Second).Format(time.Stamp)), color.BlueString("Data transfer stage:"), color.BlueString(dt_stg.Name))
|
for _, l := range dtStg.Logs {
|
||||||
for _, l := range dt_stg.Logs {
|
|
||||||
fmt.Printf(" %s %s\n", color.YellowString(l.UpdatedTime.Time().UTC().Round(time.Second).Format(time.Stamp)), l.Log)
|
fmt.Printf(" %s %s\n", color.YellowString(l.UpdatedTime.Time().UTC().Round(time.Second).Format(time.Stamp)), l.Log)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user