This commit is contained in:
Scott E. Graves 2024-12-19 13:07:57 -06:00
parent 0348492f6c
commit d66c818c1e
2 changed files with 9 additions and 8 deletions

View File

@ -31,22 +31,23 @@ class i_provider;
class eviction final : public single_thread_service_base { class eviction final : public single_thread_service_base {
public: public:
eviction(i_provider &provider, const app_config &config, i_file_manager &fm) eviction(i_provider &provider, const app_config &config,
i_file_manager &file_mgr)
: single_thread_service_base("eviction"), : single_thread_service_base("eviction"),
provider_(provider),
config_(config), config_(config),
fm_(fm) {} file_mgr_(file_mgr),
provider_(provider) {}
~eviction() override = default; ~eviction() override = default;
private: private:
i_provider &provider_;
const app_config &config_; const app_config &config_;
i_file_manager &fm_; i_file_manager &file_mgr_;
i_provider &provider_;
private: private:
[[nodiscard]] auto [[nodiscard]] auto check_minimum_requirements(const std::string &file_path)
check_minimum_requirements(const std::string &file_path) -> bool; -> bool;
[[nodiscard]] auto get_filtered_cached_files() -> std::deque<std::string>; [[nodiscard]] auto get_filtered_cached_files() -> std::deque<std::string>;

View File

@ -92,7 +92,7 @@ void eviction::service_function() {
continue; continue;
} }
fm_.evict_file(fsi.api_path); file_mgr_.evict_file(fsi.api_path);
} catch (const std::exception &ex) { } catch (const std::exception &ex) {
utils::error::raise_error( utils::error::raise_error(
function_name, ex, function_name, ex,