Skip to content

Commit

Permalink
Merge pull request #6233 from filecoin-project/fix/sync-category
Browse files Browse the repository at this point in the history
fix: sync category
  • Loading branch information
simlecode authored Nov 28, 2023
2 parents 0c8c472 + c018352 commit 56c199b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
cmds "github.com/ipfs/go-ipfs-cmds"

"github.com/filecoin-project/venus/app/node"
syncTypes "github.com/filecoin-project/venus/pkg/chainsync/types"
)

var syncCmd = &cmds.Command{
Expand Down Expand Up @@ -66,7 +65,7 @@ var storeStatusCmd = &cmds.Command{
var inSyncing []*types.Target
var waitTarget []*types.Target
for _, t := range targets {
if t.State == types.SyncStateStage(syncTypes.StateInSyncing) {
if t.State == types.StageMessages {
inSyncing = append(inSyncing, t)
} else {
waitTarget = append(waitTarget, t)
Expand Down
2 changes: 2 additions & 0 deletions venus-shared/types/api_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ func (v SyncStateStage) String() string {
return "error"
case StageFetchingMessages:
return "fetching messages"
case StageIdle:
return "idle"
default:
return fmt.Sprintf("<unknown: %d>", v)
}
Expand Down

0 comments on commit 56c199b

Please sign in to comment.