summaryrefslogtreecommitdiff
path: root/redfish-core/lib/metric_report.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/metric_report.hpp')
-rw-r--r--redfish-core/lib/metric_report.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/metric_report.hpp b/redfish-core/lib/metric_report.hpp
index eb69ff0186..d12ba103f3 100644
--- a/redfish-core/lib/metric_report.hpp
+++ b/redfish-core/lib/metric_report.hpp
@@ -117,7 +117,7 @@ inline void requestRoutesMetricReport(App& app)
sdbusplus::asio::getProperty<telemetry::TimestampReadings>(
*crow::connections::systemBus, telemetry::service, reportPath,
telemetry::reportInterface, "Readings",
- [asyncResp, id](const boost::system::error_code ec2,
+ [asyncResp, id](const boost::system::error_code& ec2,
const telemetry::TimestampReadings& ret) {
if (ec2)
{