Skip to content

Commit

Permalink
GH-525 Use context of connection strand
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 2, 2024
1 parent eb40e5e commit c0e7226
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 @@ -4688,7 +4688,7 @@ namespace eosio {
}

strand.post([c, host, port]() {
auto resolver = std::make_shared<tcp::resolver>( my_impl->thread_pool.get_executor() );
auto resolver = std::make_shared<tcp::resolver>( c->strand.context() );
resolver->async_resolve(host, port,
[resolver, c, host, port]
( const boost::system::error_code& err, const tcp::resolver::results_type& results ) {
Expand Down

0 comments on commit c0e7226

Please sign in to comment.