Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failing Revert "Removing hardcoded value in fork processor" #1067

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package tech.cryptonomic.conseil.indexer.tezos.forks

import java.time.Instant

import tech.cryptonomic.conseil.common.io.Logging.ConseilLogSupport
import tech.cryptonomic.conseil.common.tezos.TezosTypes.{BlockData, TezosBlockHash}
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,16 +27,13 @@ class BacktracingForkProcessor(
val node: TezosRPCInterface,
tezosIndexedDataOperations: TezosIndexedDataOperations,
indexerSearch: SearchBlockId[Future, TezosBlockHash],
amender: ForkAmender[Future, TezosBlockHash],
batchConf: BatchFetchConfiguration,
amender: ForkAmender[Future, TezosBlockHash]
)(ec: ExecutionContext)
extends TezosBlocksDataFetchers
with ConseilLogSupport {

import batchConf.blockOperationsConcurrencyLevel

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

implicit override def fetchFutureContext: ExecutionContext = ec

Expand Down