From 77a33332758d28c6c0c2be7c2cc4a4e7e2fe2758 Mon Sep 17 00:00:00 2001 From: Pierre Ferran Date: Thu, 2 May 2024 15:33:37 -0400 Subject: [PATCH] Don't re-use slurper cli --- backend/src/RemoteData.hpp | 3 +-- package-lock.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/RemoteData.hpp b/backend/src/RemoteData.hpp index 97b5b7f..0384e64 100644 --- a/backend/src/RemoteData.hpp +++ b/backend/src/RemoteData.hpp @@ -16,7 +16,6 @@ class RemoteData { public: RemoteData() : timer(static_cast(3 * 1000), static_cast(TIMER_CALLBACK_INTERVAL_SEC * 1000)) - , slurperCli(SLURPER_BASE_URL) { timer.start(Poco::TimerCallback(*this, &RemoteData::onTimer)); } @@ -49,6 +48,7 @@ class RemoteData { return ""; } + httplib::Client slurperCli(SLURPER_BASE_URL); auto res = slurperCli.Get(SLURPER_DATA_ENDPOINT + std::string("?cid=") + UserSession::cid); if (!res) { @@ -215,7 +215,6 @@ class RemoteData { private: Poco::Timer timer; - httplib::Client slurperCli; bool pYx = false; bool userHasBeenNotifiedOfSlurperUnavailability = false; diff --git a/package-lock.json b/package-lock.json index 6490b47..ddd8c16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15698,7 +15698,7 @@ "node_modules/trackaudio-afv": { "version": "1.0.0", "resolved": "file:backend/trackaudio-afv-1.0.0.tgz", - "integrity": "sha512-yXJAHxwjHh4Vcmv7HtfwV0B4PF761AdrNc2xK3wQeqZa45uKwe1K8NyJB7+lIzvLpmW9PCzNMljXR9jw5f3Yew==", + "integrity": "sha512-RakW1wnn4oRnJhElC0xkVMUmIweYxTbufhSl3u1hUC/q9lmJgGtGWjiwH/fN+9E1vctftUiui0DFM6ZVjgspQA==", "dependencies": { "bindings": "^1.5.0", "node-addon-api": "^1.1.0"