diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2021-11-16 20:37:47 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2021-11-16 20:41:01 +0300 |
commit | 9062d478d4dc89598e215e1538ba8fbb8db2cf10 (patch) | |
tree | c989da259e677ed3b471a53a6bf271868a190880 /redfish-core/lib/sensors.hpp | |
parent | ccd584f2da1e687ea66d47824a791162458e737b (diff) | |
download | bmcweb-9062d478d4dc89598e215e1538ba8fbb8db2cf10.tar.xz |
Revert "Change the completionhandler to accept Res"
This reverts commit 91995f3272010875e1559397e98ca93354066a0e.
Seeing bumps fail.
https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/48864
Please fix, test, and resubmit.
Change-Id: Id539fe66d5a093caf8f22a393f7af7b58ead5247
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/sensors.hpp')
-rw-r--r-- | redfish-core/lib/sensors.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp index efbb98026d..af9f466e28 100644 --- a/redfish-core/lib/sensors.hpp +++ b/redfish-core/lib/sensors.hpp @@ -2972,9 +2972,10 @@ inline void retrieveUriToDbusMap(const std::string& chassis, return; } - auto asyncResp = std::make_shared<bmcweb::AsyncResp>(); + auto res = std::make_shared<crow::Response>(); + auto asyncResp = std::make_shared<bmcweb::AsyncResp>(*res); auto callback = - [asyncResp, mapCompleteCb{std::move(mapComplete)}]( + [res, asyncResp, mapCompleteCb{std::move(mapComplete)}]( const boost::beast::http::status status, const boost::container::flat_map<std::string, std::string>& uriToDbus) { mapCompleteCb(status, uriToDbus); }; |