summaryrefslogtreecommitdiff
path: root/include/obmc_console.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2018-12-02 22:58:47 +0300
committerEd Tanous <ed.tanous@intel.com>2019-02-04 23:36:11 +0300
commitceac6f75c3c6b2d5f4c430250daa2a98e4548220 (patch)
treec1f7641c6d352a5ec3b9bf01b3b9cbd55be0a8b0 /include/obmc_console.hpp
parentb957ba5a3435de9ece771946935c858d97bf5d5f (diff)
downloadbmcweb-ceac6f75c3c6b2d5f4c430250daa2a98e4548220.tar.xz
Delete socket adapters
Boost beast, ASIO, and networking TS already have mechanisms for injecting unit tests, using template parameters. We already use this to some extent, although we pass through socket_adapters. Now that we have constexpr if, we have the ability to simplify this code quite a bit. Tested by: Pulled down phosphor-webui, ran redfish service validator. Observed no errors. Change-Id: Ib8734aeb4c9139b56705060f6196e8ae16458fe9 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'include/obmc_console.hpp')
-rw-r--r--include/obmc_console.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp
index 436f6c6cf1..5797613a11 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -116,7 +116,7 @@ void requestRoutes(CrowApp& app)
host_socket = std::make_unique<
boost::asio::local::stream_protocol::socket>(
- conn.getIoService());
+ conn.get_io_context());
host_socket->async_connect(ep, connectHandler);
}
})