mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 01:20:32 +00:00
chore: Enable modernize-avoid-bind (#7711)
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <condition_variable>
|
||||
#include <cstddef>
|
||||
#include <exception>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
@@ -172,9 +173,9 @@ public:
|
||||
}));
|
||||
ws_.handshake(ep.address().to_string() + ":" + std::to_string(ep.port()), "/");
|
||||
ws_.async_read(
|
||||
rb_,
|
||||
boost::asio::bind_executor(
|
||||
strand_, std::bind(&WSClientImpl::onReadMsg, this, std::placeholders::_1)));
|
||||
rb_, boost::asio::bind_executor(strand_, [this](error_code const& ec, std::size_t) {
|
||||
onReadMsg(ec);
|
||||
}));
|
||||
}
|
||||
catch (std::exception&)
|
||||
{
|
||||
@@ -310,9 +311,9 @@ private:
|
||||
cv_.notify_all();
|
||||
}
|
||||
ws_.async_read(
|
||||
rb_,
|
||||
boost::asio::bind_executor(
|
||||
strand_, std::bind(&WSClientImpl::onReadMsg, this, std::placeholders::_1)));
|
||||
rb_, boost::asio::bind_executor(strand_, [this](error_code const& ec, std::size_t) {
|
||||
onReadMsg(ec);
|
||||
}));
|
||||
}
|
||||
|
||||
// Called when the read op terminates
|
||||
|
||||
Reference in New Issue
Block a user