Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed Nov 7, 2024
1 parent 1dec7f8 commit 3e0aca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/state/exec3/historical_trace_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func NewHistoricalTraceWorkers(consumer TraceConsumer, cfg *ExecArgs, ctx contex
}
}()

logEvery := time.NewTicker(1 * time.Second)
logEvery := time.NewTicker(30 * time.Second)
defer logEvery.Stop()

tx, err := cfg.ChainDB.BeginRo(ctx)
Expand Down Expand Up @@ -495,7 +495,7 @@ func CustomTraceMapReduce(fromBlock, toBlock uint64, consumer TraceConsumer, ctx
if err != nil {
return err
}
logEvery := time.NewTicker(1 * time.Second)
logEvery := time.NewTicker(30 * time.Second)
defer logEvery.Stop()
for blockNum := fromBlock; blockNum <= toBlock; blockNum++ {
var b *types.Block
Expand Down

0 comments on commit 3e0aca1

Please sign in to comment.