From 919f71e38b8bbf01d352e8ef3692b6402c267cc2 Mon Sep 17 00:00:00 2001 From: "terry.hung" Date: Thu, 24 Aug 2023 15:24:38 +0800 Subject: [PATCH] Return the null array if there is no actor dump processor --- chain/indexer/integrated/processor/state.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chain/indexer/integrated/processor/state.go b/chain/indexer/integrated/processor/state.go index 7c5c87df..c4d3e144 100644 --- a/chain/indexer/integrated/processor/state.go +++ b/chain/indexer/integrated/processor/state.go @@ -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())