Changes for Beast version 59

This commit is contained in:
Vinnie Falco
2017-06-12 01:03:19 -07:00
committed by Miguel Portilla
parent 49bdf2e72d
commit 61316c7f95
36 changed files with 367 additions and 366 deletions

View File

@@ -144,7 +144,7 @@ ValidatorSite::setTimer ()
timer_.expires_at (next->nextRefresh);
timer_.async_wait (std::bind (&ValidatorSite::onTimer, this,
std::distance (sites_.begin (), next),
beast::asio::placeholders::error));
std::placeholders::_1));
}
}
@@ -205,12 +205,12 @@ ValidatorSite::onSiteFetch(
detail::response_type&& res,
std::size_t siteIdx)
{
if (! ec && res.status != 200)
if (! ec && res.result() != beast::http::status::ok)
{
std::lock_guard <std::mutex> lock{sites_mutex_};
JLOG (j_.warn()) <<
"Request for validator list at " <<
sites_[siteIdx].uri << " returned " << res.status;
sites_[siteIdx].uri << " returned " << res.result_int();
}
else if (! ec)
{