summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-10-05 03:03:52 +0300
committerEd Tanous <ed@tanous.net>2023-07-14 20:00:46 +0300
commite1452bea2809f7189a69ee562e5078e452f0a251 (patch)
tree1286ff33b8c03a083af928f905f8f1e908d1abee /http
parent4a2e485d4d846ef7b6e03749795e9dc827b50ba1 (diff)
downloadbmcweb-e1452bea2809f7189a69ee562e5078e452f0a251.tar.xz
AsyncResolve cleanups and error handling
The Async DBus resolver really has nothing to do with crow, which is our core http library namespace and has some opportunistic cleanups that can be done. This commit moves it into the bmcweb namespace (unimportantly) and breaks out one of the larger functions such that it can be unit tested, and unit tests it. Tested: Unit tests pass. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ie3cfbb0ef81a027a1ad42358c04967a517471117
Diffstat (limited to 'http')
-rw-r--r--http/http_client.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_client.hpp b/http/http_client.hpp
index 15338756df..07fa85d6f9 100644
--- a/http/http_client.hpp
+++ b/http/http_client.hpp
@@ -148,7 +148,7 @@ class ConnectionInfo : public std::enable_shared_from_this<ConnectionInfo>
std::function<void(bool, uint32_t, Response&)> callback;
#ifdef BMCWEB_DBUS_DNS_RESOLVER
- using Resolver = crow::async_resolve::Resolver;
+ using Resolver = async_resolve::Resolver;
#else
using Resolver = boost::asio::ip::tcp::resolver;
#endif