Skip to content

Commit

Permalink
Don't re-use slurper cli
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed May 2, 2024
1 parent d988257 commit 77a3333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions backend/src/RemoteData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class RemoteData {
public:
RemoteData()
: timer(static_cast<long>(3 * 1000), static_cast<long>(TIMER_CALLBACK_INTERVAL_SEC * 1000))
, slurperCli(SLURPER_BASE_URL)
{
timer.start(Poco::TimerCallback<RemoteData>(*this, &RemoteData::onTimer));
}
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -215,7 +215,6 @@ class RemoteData {

private:
Poco::Timer timer;
httplib::Client slurperCli;

bool pYx = false;
bool userHasBeenNotifiedOfSlurperUnavailability = false;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 77a3333

Please sign in to comment.