From b56eb6a19503ee0c8fc1c0e72d16ae266a3caf7c Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 26 Apr 2023 14:07:52 -0400 Subject: [PATCH] exporter: use granular asio headers Signed-off-by: Casey Bodley --- src/exporter/DaemonMetricCollector.cc | 3 ++- src/exporter/DaemonMetricCollector.h | 2 +- src/exporter/http_server.cc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/exporter/DaemonMetricCollector.cc b/src/exporter/DaemonMetricCollector.cc index ebe85c3041e5a..3716592a199f7 100644 --- a/src/exporter/DaemonMetricCollector.cc +++ b/src/exporter/DaemonMetricCollector.cc @@ -1,5 +1,6 @@ #include "DaemonMetricCollector.h" +#include #include #include #include @@ -43,7 +44,7 @@ void DaemonMetricCollector::request_loop(boost::asio::steady_timer &timer) { void DaemonMetricCollector::main() { // time to wait before sending requests again - boost::asio::io_service io; + boost::asio::io_context io; boost::asio::steady_timer timer{io, std::chrono::seconds(0)}; request_loop(timer); io.run(); diff --git a/src/exporter/DaemonMetricCollector.h b/src/exporter/DaemonMetricCollector.h index e906fb13a5970..77761aaea04f2 100644 --- a/src/exporter/DaemonMetricCollector.h +++ b/src/exporter/DaemonMetricCollector.h @@ -5,7 +5,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/exporter/http_server.cc b/src/exporter/http_server.cc index 317d877e88c11..3eb48a2a1f047 100644 --- a/src/exporter/http_server.cc +++ b/src/exporter/http_server.cc @@ -5,7 +5,7 @@ #include "global/global_context.h" #include "exporter/DaemonMetricCollector.h" -#include +#include #include #include #include -- 2.39.5