dns_connection_factory: refine the move constructor
Clean up the awkward move constructor that was declared in the header but defaulted in a separate compilation unit, improving clarity and consistency.
This commit is contained in:
@@ -79,8 +79,6 @@ future<connected_socket> utils::http::dns_connection_factory::connect(net::inet_
|
||||
co_return co_await seastar::connect(socket_addr, {}, transport::TCP);
|
||||
}
|
||||
|
||||
utils::http::dns_connection_factory::dns_connection_factory(dns_connection_factory&&) = default;
|
||||
|
||||
utils::http::dns_connection_factory::dns_connection_factory(std::string host, int port, bool use_https, logging::logger& logger, shared_ptr<tls::certificate_credentials> certs)
|
||||
: _host(std::move(host))
|
||||
, _port(port)
|
||||
|
||||
@@ -40,7 +40,7 @@ protected:
|
||||
future<shared_ptr<tls::certificate_credentials>> get_creds();
|
||||
future<connected_socket> connect(net::inet_address address);
|
||||
public:
|
||||
dns_connection_factory(dns_connection_factory&&);
|
||||
dns_connection_factory(dns_connection_factory&&) = default;
|
||||
dns_connection_factory(std::string host, int port, bool use_https, logging::logger& logger, shared_ptr<tls::certificate_credentials> = {});
|
||||
dns_connection_factory(std::string endpoint_url, logging::logger& logger, shared_ptr<tls::certificate_credentials> = {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user