Skip to content

Commit

Permalink
better init
Browse files Browse the repository at this point in the history
  • Loading branch information
ErakhtinB committed Jan 10, 2025
1 parent 49f3845 commit 6df59ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/network/impl/synchronizer_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ namespace kagome::network {
chain_sub_engine_(std::move(chain_sub_engine)),
main_pool_handler_{
poolHandlerReadyMake(app_state_manager, main_thread_pool)},
block_storage_{std::move(block_storage)} {
block_storage_{std::move(block_storage)},
max_parallel_downloads_{app_config.maxParallelDownloads()},
random_gen_{std::random_device{}()} {
BOOST_ASSERT(block_tree_);
BOOST_ASSERT(block_executor_);
BOOST_ASSERT(trie_node_db_);
Expand All @@ -138,8 +140,6 @@ namespace kagome::network {
BOOST_ASSERT(block_storage_);

sync_method_ = app_config.syncMethod();
max_parallel_downloads_ = app_config.maxParallelDownloads();
random_gen_ = std::mt19937(std::random_device{}());

// Register metrics
metrics_registry_->registerGaugeFamily(
Expand Down

0 comments on commit 6df59ac

Please sign in to comment.