diff --git a/contrib/epee/src/net_ssl.cpp b/contrib/epee/src/net_ssl.cpp index e7d6eb83c..74d599d8f 100644 --- a/contrib/epee/src/net_ssl.cpp +++ b/contrib/epee/src/net_ssl.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include "misc_log_ex.h" @@ -615,7 +616,7 @@ bool ssl_options_t::handshake( socket.async_handshake( type, boost::asio::buffer(buffer), - strand.wrap(on_handshake) + boost::asio::bind_executor(strand, on_handshake) ); } ); diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp index f87cf9cfd..db89f5b10 100644 --- a/src/cryptonote_protocol/levin_notify.cpp +++ b/src/cryptonote_protocol/levin_notify.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -354,7 +355,7 @@ namespace levin detail::zone& this_zone = *zone; ++this_zone.flush_callbacks; this_zone.flush_txs.expires_at(flush_time); - this_zone.flush_txs.async_wait(this_zone.strand.wrap(fluff_flush{std::move(zone)})); + this_zone.flush_txs.async_wait(boost::asio::bind_executor(this_zone.strand, fluff_flush{std::move(zone)})); } void operator()(const boost::system::error_code error) @@ -628,9 +629,7 @@ namespace levin noise_channel& channel = zone->channels.at(index); channel.next_noise.expires_at(start + noise_min_delay + random_duration(noise_delay_range)); - channel.next_noise.async_wait( - channel.strand.wrap(send_noise{std::move(zone), index, core}) - ); + channel.next_noise.async_wait(boost::asio::bind_executor(channel.strand, send_noise{std::move(zone), index, core})); } //! \pre Called within `zone_->channels[channel_].strand`.