Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Post dispatcher call of strand posts through a strand
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Feb 4, 2020
1 parent 1f52e92 commit 995dec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3085,7 +3085,7 @@ namespace eosio {

// called from application thread
void net_plugin_impl::transaction_ack(const std::pair<fc::exception_ptr, transaction_metadata_ptr>& results) {
boost::asio::post( my_impl->thread_pool->get_executor(), [this, results]() {
dispatcher->strand.post( [this, results]() {
const auto& id = results.second->id();
if (results.first) {
fc_dlog( logger, "signaled NACK, trx-id = ${id} : ${why}", ("id", id)( "why", results.first->to_detail_string() ) );
Expand Down

0 comments on commit 995dec6

Please sign in to comment.