From 4e6b92cadfc3141fb766cf0b3b5d0c3d902bba74 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Thu, 27 Oct 2022 09:33:15 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-11303 Signed-off-by: stephb9959 --- src/framework/ALBserver.h | 2 +- src/framework/MicroService.cpp | 3 --- src/framework/MicroServiceFuncs.cpp | 4 ++++ src/framework/MicroServiceFuncs.h | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/framework/ALBserver.h b/src/framework/ALBserver.h index 37cea16..c147c89 100644 --- a/src/framework/ALBserver.h +++ b/src/framework/ALBserver.h @@ -22,7 +22,7 @@ namespace OpenWifi { void handleRequest([[maybe_unused]] Poco::Net::HTTPServerRequest& Request, Poco::Net::HTTPServerResponse& Response) override; private: - Poco::Logger & Logger_; + [[maybe_unused]] Poco::Logger & Logger_; uint64_t id_; }; diff --git a/src/framework/MicroService.cpp b/src/framework/MicroService.cpp index 288b143..fc70bec 100644 --- a/src/framework/MicroService.cpp +++ b/src/framework/MicroService.cpp @@ -22,10 +22,7 @@ #include "framework/AuthClient.h" #include "framework/ALBserver.h" #include "framework/KafkaManager.h" -#include "framework/RESTAPI_RateLimiter.h" -#include "framework/WebSocketLogger.h" #include "framework/RESTAPI_GenericServerAccounting.h" -#include "framework/RESTAPI_Handler.h" #include "framework/RESTAPI_ExtServer.h" #include "framework/RESTAPI_IntServer.h" diff --git a/src/framework/MicroServiceFuncs.cpp b/src/framework/MicroServiceFuncs.cpp index 33b9f55..196ddfc 100644 --- a/src/framework/MicroServiceFuncs.cpp +++ b/src/framework/MicroServiceFuncs.cpp @@ -103,6 +103,10 @@ namespace OpenWifi { return MicroService::instance().Random(Start, End); } + std::uint64_t MicroServiceRandom(std::uint64_t Range) { + return MicroService::instance().Random(Range); + } + std::string MicroServiceSign(Poco::JWT::Token &T, const std::string &Algo) { return MicroService::instance().Sign(T, Algo); } diff --git a/src/framework/MicroServiceFuncs.h b/src/framework/MicroServiceFuncs.h index e0f9551..afcf501 100644 --- a/src/framework/MicroServiceFuncs.h +++ b/src/framework/MicroServiceFuncs.h @@ -49,6 +49,7 @@ namespace OpenWifi { const std::string &DefaultValue); std::string MicroServiceWWWAssetsDir(); std::uint64_t MicroServiceRandom(std::uint64_t Start,std::uint64_t End); + std::uint64_t MicroServiceRandom(std::uint64_t Range); std::string MicroServiceSign(Poco::JWT::Token &T, const std::string &Algo); std::string MicroServiceGetPublicAPIEndPoint(); }