summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dbus_monitor.hpp3
-rw-r--r--include/kvm_websocket.hpp3
-rw-r--r--include/nbd_proxy.hpp16
-rw-r--r--include/obmc_console.hpp3
-rw-r--r--include/vm_websocket.hpp3
5 files changed, 11 insertions, 17 deletions
diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp
index a6c86c61ef..60041941f4 100644
--- a/include/dbus_monitor.hpp
+++ b/include/dbus_monitor.hpp
@@ -107,8 +107,7 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/subscribe")
.privileges({{"Login"}})
.websocket()
- .onopen([&](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>&) {
+ .onopen([&](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
sessions[&conn] = DbusWebsocketSession();
})
diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp
index a9dc8eaf0e..46443b983f 100644
--- a/include/kvm_websocket.hpp
+++ b/include/kvm_websocket.hpp
@@ -161,8 +161,7 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/kvm/0")
.privileges({{"ConfigureComponents", "ConfigureManager"}})
.websocket()
- .onopen([](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>&) {
+ .onopen([](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
if (sessions.size() == maxSessions)
diff --git a/include/nbd_proxy.hpp b/include/nbd_proxy.hpp
index 7b90e90378..85fb2d467e 100644
--- a/include/nbd_proxy.hpp
+++ b/include/nbd_proxy.hpp
@@ -252,17 +252,15 @@ inline void requestRoutes(App& app)
{
BMCWEB_ROUTE(app, "/nbd/<str>")
.websocket()
- .onopen([](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) {
+ .onopen([](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "nbd-proxy.onopen(" << &conn << ")";
auto getUserInfoHandler =
- [&conn, asyncResp](
- const boost::system::error_code ec,
- boost::container::flat_map<
- std::string, std::variant<bool, std::string,
- std::vector<std::string>>>
- userInfo) {
+ [&conn](const boost::system::error_code ec,
+ boost::container::flat_map<
+ std::string, std::variant<bool, std::string,
+ std::vector<std::string>>>
+ userInfo) {
if (ec)
{
BMCWEB_LOG_ERROR << "GetUserInfo failed...";
@@ -302,7 +300,7 @@ inline void requestRoutes(App& app)
return;
}
- auto openHandler = [&conn, asyncResp](
+ auto openHandler = [&conn](
const boost::system::error_code ec,
const dbus::utility::
ManagedObjectType& objects) {
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp
index 478649ac8d..dab9521481 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -119,8 +119,7 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/console0")
.privileges({{"ConfigureComponents", "ConfigureManager"}})
.websocket()
- .onopen([](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>&) {
+ .onopen([](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
sessions.insert(&conn);
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 34ef82ef99..08de90e0d9 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -160,8 +160,7 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/vm/0/0")
.privileges({{"ConfigureComponents", "ConfigureManager"}})
.websocket()
- .onopen([](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>&) {
+ .onopen([](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
if (session != nullptr)