提交 dbcd8594 编写于 作者: Z zhao liwei 提交者: Yingchun Lai

feat: add http_server for info collector (#442)

上级 85524441
...@@ -16,7 +16,7 @@ namespace pegasus { ...@@ -16,7 +16,7 @@ namespace pegasus {
namespace server { namespace server {
info_collector_app::info_collector_app(const dsn::service_app_info *info) 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())
{ {
} }
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#pragma once #pragma once
#include <dsn/cpp/service_app.h> #include <dsn/cpp/service_app.h>
#include <dsn/tool-api/http_server.h>
#include "info_collector.h" #include "info_collector.h"
#include "available_detector.h" #include "available_detector.h"
...@@ -24,6 +25,7 @@ private: ...@@ -24,6 +25,7 @@ private:
info_collector _collector; info_collector _collector;
available_detector _detector; available_detector _detector;
bool _updater_started; bool _updater_started;
std::unique_ptr<::dsn::http_server> _http_server;
}; };
} }
} // namespace } // namespace
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册