Skip to content

Commit

Permalink
skip StateListActors if there is no actor dump processor (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terryhung authored Aug 24, 2023
1 parent 47f7ed2 commit b1db205
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/indexer/integrated/processor/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ func (sp *StateProcessor) startPeriodicActorDump(ctx context.Context, current *t
start := time.Now()
var taskNames []string

if len(sp.periodicActorDumpProcessors) == 0 {
return taskNames
}

if interval > 0 && current.Height()%abi.ChainEpoch(interval) != 0 {
logger := log.With("processor", "PeriodicActorDump")
logger.Infow("Skip this epoch", current.Height())
Expand Down

0 comments on commit b1db205

Please sign in to comment.