Change io_service to io_context

This was renamed a while back in boost to be compliant with the
std::executors proposal.

Change-Id: Id8cda0486beed09984e570393921bd95835e5980
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/src/power_control.cpp b/src/power_control.cpp
index 6229251..1a89323 100644
--- a/src/power_control.cpp
+++ b/src/power_control.cpp
@@ -18,7 +18,7 @@
 #include <sys/sysinfo.h>
 #include <systemd/sd-journal.h>
 
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
 #include <boost/asio/posix/stream_descriptor.hpp>
 #include <boost/asio/steady_timer.hpp>
 #include <boost/container/flat_map.hpp>
@@ -34,7 +34,7 @@
 
 namespace power_control
 {
-static boost::asio::io_service io;
+static boost::asio::io_context io;
 std::shared_ptr<sdbusplus::asio::connection> conn;
 PersistentState appState;
 PowerRestoreController powerRestore(io);
diff --git a/src/power_control.hpp b/src/power_control.hpp
index fe36b26..e4dcaf0 100644
--- a/src/power_control.hpp
+++ b/src/power_control.hpp
@@ -5,7 +5,7 @@
 
 #pragma once
 
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
 #include <boost/asio/steady_timer.hpp>
 #include <boost/container/flat_map.hpp>
 #include <nlohmann/json.hpp>
@@ -37,7 +37,7 @@
 class PowerRestoreController
 {
   public:
-    PowerRestoreController(boost::asio::io_service& io) :
+    PowerRestoreController(boost::asio::io_context& io) :
         policyInvoked(false), powerRestoreDelay(-1), powerRestoreTimer(io),
         timerFired(false)
     {}