clang-format
This commit is contained in:
parent
298808f276
commit
8f888b29bd
|
@ -610,8 +610,8 @@ void session_impl::do_read() {
|
|||
{
|
||||
callback_guard cg(*self);
|
||||
|
||||
auto rv =
|
||||
nghttp2_session_mem_recv(self->session_, self->rb_.data(), bytes_transferred);
|
||||
auto rv = nghttp2_session_mem_recv(self->session_, self->rb_.data(),
|
||||
bytes_transferred);
|
||||
|
||||
if (rv != static_cast<ssize_t>(bytes_transferred)) {
|
||||
self->call_error_cb(make_error_code(
|
||||
|
@ -694,8 +694,7 @@ void session_impl::do_write() {
|
|||
|
||||
auto self = this->shared_from_this();
|
||||
|
||||
write_socket(
|
||||
[self](const boost::system::error_code &ec, std::size_t n) {
|
||||
write_socket([self](const boost::system::error_code &ec, std::size_t n) {
|
||||
if (ec) {
|
||||
self->call_error_cb(ec);
|
||||
self->stop();
|
||||
|
|
Loading…
Reference in New Issue