From 58d924910e93533d888bbc1f2f79907049ed923b Mon Sep 17 00:00:00 2001 From: zhao liwei Date: Fri, 13 Dec 2019 15:07:31 +0800 Subject: [PATCH] feat: add http_server for info collector (#442) --- rdsn | 2 +- src/server/info_collector_app.cpp | 2 +- src/server/info_collector_app.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rdsn b/rdsn index b904de6f53..ca49482a57 160000 --- a/rdsn +++ b/rdsn @@ -1 +1 @@ -Subproject commit b904de6f530eaebae32b910ed394685af0093829 +Subproject commit ca49482a57c8470a9f44fc904284e64fdc523a49 diff --git a/src/server/info_collector_app.cpp b/src/server/info_collector_app.cpp index b9cc98bb0d..d68219f632 100644 --- a/src/server/info_collector_app.cpp +++ b/src/server/info_collector_app.cpp @@ -16,7 +16,7 @@ namespace pegasus { namespace server { info_collector_app::info_collector_app(const dsn::service_app_info *info) - : service_app(info), _updater_started(false) + : service_app(info), _updater_started(false), _http_server(new ::dsn::http_server()) { } diff --git a/src/server/info_collector_app.h b/src/server/info_collector_app.h index d2b8cd8b5a..fad34bff89 100644 --- a/src/server/info_collector_app.h +++ b/src/server/info_collector_app.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include "info_collector.h" #include "available_detector.h" @@ -24,6 +25,7 @@ class info_collector_app : public ::dsn::service_app info_collector _collector; available_detector _detector; bool _updater_started; + std::unique_ptr<::dsn::http_server> _http_server; }; } } // namespace