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

boost strand::get_io_service deprecated and removed in 1.70 #2262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libethcore/Farm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void Farm::restart()
*/
void Farm::restart_async()
{
m_io_strand.get_io_service().post(m_io_strand.wrap(boost::bind(&Farm::restart, this)));
m_io_strand.context().post(m_io_strand.wrap(boost::bind(&Farm::restart, this)));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion libpoolprotocols/getwork/EthGetworkClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void EthGetworkClient::begin_connect()
// Eventually endpoints get discarded on connection errors
m_endpoint = m_endpoints.front();
m_socket.async_connect(
m_endpoint, m_io_strand.wrap(boost::bind(&EthGetworkClient::handle_connect, this, _1)));
m_endpoint, m_io_strand.wrap(boost::bind(&EthGetworkClient::handle_connect, this, boost::placeholders::_1)));
}
else
{
Expand Down