diff --git a/src/server/info_collector_app.cpp b/src/server/info_collector_app.cpp index b9cc98bb0d7ed893637e5ad393d27438e0c9ea20..d68219f6323e23cc70ea48a72735ccaffd8b4e9c 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 d2b8cd8b5a210aa9c818731ae31599bb61cfb69c..fad34bff895d4b0259433314f723e1af7e8facee 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 @@ private: info_collector _collector; available_detector _detector; bool _updater_started; + std::unique_ptr<::dsn::http_server> _http_server; }; } } // namespace