face: Convert to use the global IO service by all ChannelFactories
Change-Id: Ibd8d5cea142171b5700d8920eb3eedc084bbd588
diff --git a/daemon/face/unix-stream-channel-factory.cpp b/daemon/face/unix-stream-channel-factory.cpp
index ededecd..040c1e2 100644
--- a/daemon/face/unix-stream-channel-factory.cpp
+++ b/daemon/face/unix-stream-channel-factory.cpp
@@ -5,13 +5,13 @@
*/
#include "unix-stream-channel-factory.hpp"
+#include "core/global-io.hpp"
#include <boost/filesystem.hpp> // for canonical()
namespace nfd {
-UnixStreamChannelFactory::UnixStreamChannelFactory(boost::asio::io_service& ioService)
- : m_ioService(ioService)
+UnixStreamChannelFactory::UnixStreamChannelFactory()
{
}
@@ -26,7 +26,7 @@
if (channel)
return channel;
- channel = make_shared<UnixStreamChannel>(boost::ref(m_ioService),
+ channel = make_shared<UnixStreamChannel>(boost::ref(getGlobalIoService()),
boost::cref(endpoint));
m_channels[endpoint] = channel;
return channel;