diff options
| author | Stefan Boberg <[email protected]> | 2021-09-27 17:15:16 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-27 17:15:16 +0200 |
| commit | 7c1e92adea5eb9e492ec186d9913918eaf2c22e4 (patch) | |
| tree | 1473ce9d0a812f1f3aca76a1e157b508e152ce1f /zenserver/zenserver.cpp | |
| parent | httpsys: Added HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA to response calls which sh... (diff) | |
| download | zen-7c1e92adea5eb9e492ec186d9913918eaf2c22e4.tar.xz zen-7c1e92adea5eb9e492ec186d9913918eaf2c22e4.zip | |
mesh: Hide mesh functionality behind ZEN_ENABLE_MESH define
This enables us to hide it from users until it's actually useful
Diffstat (limited to 'zenserver/zenserver.cpp')
| -rw-r--r-- | zenserver/zenserver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index fe4f41ab5..b45df9fef 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -261,6 +261,7 @@ public: ZEN_INFO("NOT instantiating structured cache service"); } +#if ZEN_ENABLE_MESH if (ServiceConfig.MeshEnabled) { StartMesh(BasePort); @@ -269,6 +270,7 @@ public: { ZEN_INFO("NOT starting mesh"); } +#endif m_Http = zen::CreateHttpServer(); m_Http->Initialize(BasePort); @@ -302,11 +304,13 @@ public: } } +#if ZEN_ENABLE_MESH void StartMesh(int BasePort) { ZEN_INFO("initializing mesh discovery"); m_ZenMesh.Start(uint16_t(BasePort)); } +#endif void Run() { |