You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by yu...@apache.org on 2020/12/29 03:32:51 UTC
[incubator-pegasus] 01/07: fix(http): change the way to start http
server (#596)
This is an automated email from the ASF dual-hosted git repository.
yuchenhe pushed a commit to branch v2.1.2
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
commit fcf899eb3c2b18264283a716e50e289ddd5b4f61
Author: zhao liwei <zl...@163.com>
AuthorDate: Mon Sep 7 23:16:41 2020 +0800
fix(http): change the way to start http server (#596)
---
rdsn | 2 +-
src/server/info_collector_app.cpp | 3 ++-
src/server/info_collector_app.h | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rdsn b/rdsn
index 3f884f9..6f5980e 160000
--- a/rdsn
+++ b/rdsn
@@ -1 +1 @@
-Subproject commit 3f884f935ed94805105ba56e5597c9a8f0679fab
+Subproject commit 6f5980ea3a8b9a12baed6ce7635f090798926a11
diff --git a/src/server/info_collector_app.cpp b/src/server/info_collector_app.cpp
index 27f8882..a8c0c9f 100644
--- a/src/server/info_collector_app.cpp
+++ b/src/server/info_collector_app.cpp
@@ -31,8 +31,9 @@ namespace pegasus {
namespace server {
info_collector_app::info_collector_app(const dsn::service_app_info *info)
- : service_app(info), _updater_started(false), _http_server(new ::dsn::http_server())
+ : service_app(info), _updater_started(false)
{
+ dsn::start_http_server();
}
info_collector_app::~info_collector_app() {}
diff --git a/src/server/info_collector_app.h b/src/server/info_collector_app.h
index 5abd6d9..bf5740b 100644
--- a/src/server/info_collector_app.h
+++ b/src/server/info_collector_app.h
@@ -40,7 +40,6 @@ private:
info_collector _collector;
available_detector _detector;
bool _updater_started;
- std::unique_ptr<::dsn::http_server> _http_server;
};
}
} // namespace
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org