Skip to content

Commit

Permalink
client/http: Internal code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Nov 25, 2024
1 parent 969f7a6 commit 985799e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/malloy/client/controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ namespace malloy::client

// Run
conn->run(
std::to_string(req.port()).c_str(),
req,
std::move(prom),
std::forward<Callback>(cb),
std::forward<Filter>(filter));
std::forward<Filter>(filter)
);
});

return err_channel;
Expand Down
3 changes: 1 addition & 2 deletions lib/malloy/client/http/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ namespace malloy::client::http
// Start the asynchronous operation
void
run(
char const* port,
malloy::http::request<ReqBody> req,
std::promise<malloy::error_code> err_channel,
callback_t&& cb,
Expand All @@ -58,7 +57,7 @@ namespace malloy::client::http
// Look up the domain name
m_resolver.async_resolve(
m_req.base()[malloy::http::field::host],
port,
std::to_string(m_req.port()),
boost::beast::bind_front_handler(
&connection::on_resolve,
derived().shared_from_this()
Expand Down

0 comments on commit 985799e

Please sign in to comment.