Skip to content

Commit

Permalink
No second block tree (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErakhtinB authored Jan 8, 2025
1 parent 02a6625 commit ebf1704
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/injector/application_injector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,13 +739,13 @@ namespace {
}),
di::bind<blockchain::JustificationStoragePolicy>.template to<blockchain::JustificationStoragePolicyImpl>(),
bind_by_lambda<blockchain::BlockTree>(
[](const auto &injector) {
return get_block_tree(injector);
}),
[](const auto &injector) {
return get_block_tree(injector);
}),
bind_by_lambda<blockchain::BlockHeaderRepository>(
[](const auto &injector) {
return get_block_tree(injector);
}),
[](const auto &injector) {
return injector.template create<sptr<blockchain::BlockTree>>();
}),
di::bind<clock::SystemClock>.template to<clock::SystemClockImpl>(),
di::bind<clock::SteadyClock>.template to<clock::SteadyClockImpl>(),
di::bind<clock::Timer>.template to<clock::BasicWaitableTimer>(),
Expand Down Expand Up @@ -963,7 +963,7 @@ namespace kagome::injector {
KagomeNodeInjector::KagomeNodeInjector(
sptr<application::AppConfiguration> app_config)
: pimpl_{std::make_unique<KagomeNodeInjectorImpl>(
makeKagomeNodeInjector(std::move(app_config)))} {}
makeKagomeNodeInjector(std::move(app_config)))} {}

sptr<application::AppConfiguration> KagomeNodeInjector::injectAppConfig() {
return pimpl_->injector_
Expand Down

0 comments on commit ebf1704

Please sign in to comment.