mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use structured bindings in some places:
Most of the new uses either: * Replace some uses of `tie` * bind to pairs when iterating through maps
This commit is contained in:
@@ -237,11 +237,9 @@ void
|
||||
Door<Handler>::Detector::
|
||||
do_detect(boost::asio::yield_context do_yield)
|
||||
{
|
||||
bool ssl;
|
||||
error_code ec;
|
||||
boost::beast::multi_buffer buf(16);
|
||||
timer_.expires_from_now(std::chrono::seconds(15));
|
||||
std::tie(ec, ssl) = detect_ssl(socket_, buf, do_yield);
|
||||
auto const [ec, ssl] = detect_ssl(socket_, buf, do_yield);
|
||||
error_code unused;
|
||||
timer_.cancel(unused);
|
||||
if (! ec)
|
||||
|
||||
Reference in New Issue
Block a user