From 7c1e92adea5eb9e492ec186d9913918eaf2c22e4 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 27 Sep 2021 17:15:16 +0200 Subject: mesh: Hide mesh functionality behind ZEN_ENABLE_MESH define This enables us to hide it from users until it's actually useful --- zenserver/zenserver.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zenserver/zenserver.cpp') 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() { -- cgit v1.2.3