Skip to content

Commit

Permalink
Merge pull request #1070 from Cryptonomic/fix/fix-for-reverting-fork-…
Browse files Browse the repository at this point in the history
…handling-pr

Fix for reverting fork handling PR
  • Loading branch information
SiddharthV1 authored Jan 26, 2022
2 parents fa04203 + aed5e70 commit dd2ef9a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import tech.cryptonomic.conseil.common.tezos.TezosTypes.{BlockData, TezosBlockHa
import tech.cryptonomic.conseil.indexer.tezos.{TezosBlocksDataFetchers, TezosIndexedDataOperations, TezosRPCInterface}
import cats._
import cats.implicits._
import tech.cryptonomic.conseil.indexer.config.BatchFetchConfiguration
import tech.cryptonomic.conseil.indexer.forks.ForkAmender
import tech.cryptonomic.conseil.indexer.forks.ForkDetector.SearchBlockId

Expand All @@ -27,13 +28,16 @@ class BacktracingForkProcessor(
val node: TezosRPCInterface,
tezosIndexedDataOperations: TezosIndexedDataOperations,
indexerSearch: SearchBlockId[Future, TezosBlockHash],
amender: ForkAmender[Future, TezosBlockHash]
amender: ForkAmender[Future, TezosBlockHash],
batchConf: BatchFetchConfiguration,
)(ec: ExecutionContext)
extends TezosBlocksDataFetchers
with ConseilLogSupport {

import batchConf.blockOperationsConcurrencyLevel

/** parallelism in the multiple requests decoding on the RPC interface */
override def fetchConcurrency: Int = 50
override def fetchConcurrency: Int = blockOperationsConcurrencyLevel

implicit override def fetchFutureContext: ExecutionContext = ec

Expand Down

0 comments on commit dd2ef9a

Please sign in to comment.