Skip to content

Commit

Permalink
恢复 catchup internal_transaction 批量参数
Browse files Browse the repository at this point in the history
  • Loading branch information
ss75710541 committed May 21, 2022
1 parent 1fe3f88 commit 9cfeb80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/indexer/lib/indexer/block/catchup/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ defmodule Indexer.Block.Catchup.Fetcher do
# These are all the *default* values for options.
# DO NOT use them directly in the code. Get options from `state`.

@blocks_batch_size 1
@blocks_concurrency 1
@blocks_batch_size 10
@blocks_concurrency 10
@sequence_name :block_catchup_sequencer

defstruct blocks_batch_size: @blocks_batch_size,
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/lib/indexer/fetcher/internal_transaction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule Indexer.Fetcher.InternalTransaction do

@behaviour BufferedTask

@max_batch_size 1
@max_concurrency 1
@max_batch_size 10
@max_concurrency 4
@defaults [
flush_interval: :timer.seconds(3),
max_concurrency: @max_concurrency,
Expand Down

0 comments on commit 9cfeb80

Please sign in to comment.