Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Size variable
Browse files Browse the repository at this point in the history
Signed-off-by: neewy <[email protected]>
  • Loading branch information
neewy committed Aug 29, 2018
1 parent 349f838 commit b9f5e29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions irohad/multi_sig_transactions/impl/mst_processor_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ namespace iroha {
void FairMstProcessor::onPropagate(
const PropagationStrategy::PropagationData &data) {
auto current_time = time_provider_->getCurrentTime();
auto size = data.size();
std::for_each(
data.begin(), data.end(), [this, &current_time](const auto &peer) {
data.begin(), data.end(), [this, &current_time, &size](const auto &peer) {
auto diff = storage_->getDiffState(peer, current_time);
if (not diff.isEmpty()) {
log_->info("Propagate new data[{}]", data.size());
log_->info("Propagate new data[{}]", size);
transport_->sendState(*peer, diff);
}
});
Expand Down

0 comments on commit b9f5e29

Please sign in to comment.