Skip to content

Commit b1db205

Browse files
authored
skip StateListActors if there is no actor dump processor (#1256)
1 parent 47f7ed2 commit b1db205

File tree

1 file changed

+4
-0
lines changed
  • chain/indexer/integrated/processor

1 file changed

+4
-0
lines changed

chain/indexer/integrated/processor/state.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ func (sp *StateProcessor) startPeriodicActorDump(ctx context.Context, current *t
421421
start := time.Now()
422422
var taskNames []string
423423

424+
if len(sp.periodicActorDumpProcessors) == 0 {
425+
return taskNames
426+
}
427+
424428
if interval > 0 && current.Height()%abi.ChainEpoch(interval) != 0 {
425429
logger := log.With("processor", "PeriodicActorDump")
426430
logger.Infow("Skip this epoch", current.Height())

0 commit comments

Comments
 (0)