Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/submodule/syncer/syncer_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type syncerAPI struct { //nolint
syncer *SyncerSubmodule
}

// SyncerStatus returns the current status of the active or last active chain sync operation.
// SyncerTracker returns the TargetTracker of syncing.
func (sa *syncerAPI) SyncerTracker(ctx context.Context) *types.TargetTracker {
tracker := sa.syncer.ChainSyncManager.BlockProposer().SyncTracker()
tt := &types.TargetTracker{
Expand Down Expand Up @@ -66,13 +66,13 @@ func convertSyncStateStage(srtState syncTypes.SyncStateStage) types.SyncStateSta
return state
}

// SyncerStatus returns the current status of the active or last active chain sync operation.
// SetConcurrent set the syncer worker(go-routine) number of chain syncing
func (sa *syncerAPI) SetConcurrent(ctx context.Context, concurrent int64) error {
sa.syncer.ChainSyncManager.BlockProposer().SetConcurrent(concurrent)
return nil
}

// SyncerStatus returns the current status of the active or last active chain sync operation.
// Concurrent get the syncer worker(go-routine) number of chain syncing.
func (sa *syncerAPI) Concurrent(ctx context.Context) int64 {
return sa.syncer.ChainSyncManager.BlockProposer().Concurrent()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/chainsync/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type Dispatcher struct {
maxCount int64
}

// SendOwnBlock handles chain info from a node's own mining system
// SyncTracker returns the target tracker of syncing
func (d *Dispatcher) SyncTracker() *types.TargetTracker {
return d.workTracker
}
Expand Down
1 change: 0 additions & 1 deletion venus-shared/types/api_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ type ActiveSync struct {
Message string
}

// sync
type Target struct {
State SyncStateStage
Base *TipSet
Expand Down