Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Dec 27, 2023
1 parent 09377d0 commit 0bb53cf
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions lib/malloy/server/routing/router.hpp
Expand Up @@ -106,7 +106,8 @@ namespace malloy::server
* Create the lambda wrapped callback for the writer
*/
auto
make_endpt_writer_callback() {
make_endpt_writer_callback()
{
return [this]<typename R>(const auto& req, R&& resp, const auto& conn) {
std::visit(
[&, this]<typename Re>(Re&& resp) {
Expand All @@ -120,7 +121,8 @@ namespace malloy::server
class abstract_req_validator
{
public:
virtual ~abstract_req_validator() = default;
virtual
~abstract_req_validator() = default;

virtual
bool
Expand Down Expand Up @@ -444,7 +446,8 @@ namespace malloy::server
bool isWebsocket = false,
typename Derived,
typename Connection>
void handle_request(
void
handle_request(
const std::filesystem::path& doc_root,
const req_generator<Derived>& req,
Connection&& connection
Expand Down Expand Up @@ -511,8 +514,11 @@ namespace malloy::server
bool
is_handled_by_policies(const req_generator<Derived>& req, const http::connection_t& connection)
{
return std::any_of(std::cbegin(m_policies), std::cend(m_policies), [&](const policy_store& policy) {
return policy.process(req->header(), connection);
return std::any_of(
std::cbegin(m_policies),
std::cend(m_policies),
[&](const policy_store& policy) {
return policy.process(req->header(), connection);
});
}

Expand All @@ -525,7 +531,8 @@ namespace malloy::server
* @param connection The HTTP connection.
*/
template<typename Derived>
void handle_http_request(
void
handle_http_request(
const std::filesystem::path&,
const req_generator<Derived>& req,
const http::connection_t& connection
Expand Down Expand Up @@ -570,7 +577,8 @@ namespace malloy::server
* @param connection The WebSocket connection.
*/
template<typename Derived>
void handle_ws_request(
void
handle_ws_request(
const req_generator<Derived>& gen,
const std::shared_ptr<websocket::connection>& connection
)
Expand Down

0 comments on commit 0bb53cf

Please sign in to comment.