From 8d07441f9cc5e126c79abdad6e538b597ca91d65 Mon Sep 17 00:00:00 2001 From: Simon Quigley <simon@tsimonq2.net> Date: Wed, 18 Dec 2024 18:35:18 -0600 Subject: [PATCH] Just don't cache distro_series for now --- src/source_package_publishing_history.cpp | 6 +++--- src/source_package_publishing_history.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/source_package_publishing_history.cpp b/src/source_package_publishing_history.cpp index f44423c..668128d 100644 --- a/src/source_package_publishing_history.cpp +++ b/src/source_package_publishing_history.cpp @@ -27,7 +27,7 @@ source_package_publishing_history::source_package_publishing_history() lp(nullptr), distro_series([this]() -> std::optional<class distro_series> { if (distro_series_link.empty()) return std::nullopt; - if (_distro_series) return _distro_series; + //if (_distro_series) return _distro_series; auto response = lp ? lp->api_get(distro_series_link) : std::nullopt; if (!response) return std::nullopt; @@ -37,8 +37,8 @@ source_package_publishing_history::source_package_publishing_history() if (ds) { ds->set_lp(lp); - _distro_series = ds.value(); - return _distro_series; + //_distro_series = ds.value(); + return ds; } return std::nullopt; diff --git a/src/source_package_publishing_history.h b/src/source_package_publishing_history.h index e382d8e..5b37ec5 100644 --- a/src/source_package_publishing_history.h +++ b/src/source_package_publishing_history.h @@ -58,7 +58,7 @@ public: private: launchpad* lp; - std::optional<class distro_series> _distro_series = std::nullopt; + //std::optional<class distro_series> _distro_series = std::nullopt; }; #endif // SOURCE_PACKAGE_PUBLISHING_HISTORY