Skip to content

Commit

Permalink
[Metrics] on SE
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kuvaldin <[email protected]>
  • Loading branch information
kuvadldini-soramitsu committed Apr 19, 2021
1 parent b209511 commit cb376de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions irohad/main/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1014,11 +1014,11 @@ Irohad::RunResult Irohad::run() {
storage->on_commit().subscribe(
ordering_init.commit_notifier.get_subscriber());

ordering_init.commit_notifier.get_subscriber().on_next(std::move(block));
std::shared_ptr<const shared_model::interface::Block> sh_block {std::move(block)};
ordering_init.commit_notifier.get_subscriber().on_next(sh_block);
getSubscription()->notify(
EventTypes::kOnBlock, //kOnInitialBlock
std::shared_ptr<const shared_model::interface::Block>(
std::move(block)));
sh_block);

ordering_init.sync_event_notifier.get_subscriber().on_next(
synchronizer::SynchronizationEvent{
Expand Down
3 changes: 2 additions & 1 deletion irohad/maintenance/metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ Metrics::Metrics(
//todo domains_removed += boost::get<RemoveDomain>(&cmd.get()) != nullptr;
}
}
#if 1
domains_number_value.Increment(domain_created);
#if 0
#else // no need to querry DB but here is a way to do
if(domain_created){
assert(storage_);
assert(storage_->getWsvQuery());
Expand Down

0 comments on commit cb376de

Please sign in to comment.