From 985799e3aed40ca755db6cbad0030ed209259b2f Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 25 Nov 2024 17:46:09 +0100 Subject: [PATCH] client/http: Internal code improvement --- lib/malloy/client/controller.hpp | 4 ++-- lib/malloy/client/http/connection.hpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/malloy/client/controller.hpp b/lib/malloy/client/controller.hpp index 169ec5b..591fd24 100644 --- a/lib/malloy/client/controller.hpp +++ b/lib/malloy/client/controller.hpp @@ -289,11 +289,11 @@ namespace malloy::client // Run conn->run( - std::to_string(req.port()).c_str(), req, std::move(prom), std::forward(cb), - std::forward(filter)); + std::forward(filter) + ); }); return err_channel; diff --git a/lib/malloy/client/http/connection.hpp b/lib/malloy/client/http/connection.hpp index 31f4b14..ba78348 100644 --- a/lib/malloy/client/http/connection.hpp +++ b/lib/malloy/client/http/connection.hpp @@ -43,7 +43,6 @@ namespace malloy::client::http // Start the asynchronous operation void run( - char const* port, malloy::http::request req, std::promise err_channel, callback_t&& cb, @@ -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()