mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 06:51:08 +01:00
ircd::resource::response::chunked: Eliminate move semantic.
This commit is contained in:
parent
70173f5893
commit
9c20d49e33
3 changed files with 4 additions and 11 deletions
|
@ -52,7 +52,7 @@ struct ircd::resource::response::chunked
|
|||
chunked(client &, const http::code &, const vector_view<const http::header> &, const size_t &buffer_size = default_buffer_size);
|
||||
chunked(client &, const http::code &, const size_t &buffer_size = default_buffer_size);
|
||||
chunked(const chunked &) = delete;
|
||||
chunked(chunked &&) noexcept;
|
||||
chunked(chunked &&) = delete;
|
||||
chunked() = default;
|
||||
~chunked() noexcept;
|
||||
};
|
||||
|
|
|
@ -754,13 +754,6 @@ catch(const std::exception &e)
|
|||
// resource::response::chunked
|
||||
//
|
||||
|
||||
ircd::resource::response::chunked::chunked(chunked &&other)
|
||||
noexcept
|
||||
:c{std::move(other.c)}
|
||||
{
|
||||
other.c = nullptr;
|
||||
}
|
||||
|
||||
ircd::resource::response::chunked::chunked(client &client,
|
||||
const http::code &code,
|
||||
const size_t &buffer_size)
|
||||
|
|
|
@ -140,15 +140,15 @@ ircd::m::sync::handle_get(client &client,
|
|||
|
||||
// When shortpoll was successful, do nothing else.
|
||||
if(shortpolled)
|
||||
return response;
|
||||
return {};
|
||||
|
||||
if(longpoll::poll(data, args))
|
||||
return response;
|
||||
return {};
|
||||
|
||||
// A user-timeout occurred. According to the spec we return a
|
||||
// 200 with empty fields rather than a 408.
|
||||
empty_response(data);
|
||||
return response;
|
||||
return {};
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue