refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-12-02 19:18:23 -06:00
parent 4b9b095104
commit b265dcf73f
2 changed files with 10 additions and 8 deletions

View File

@ -712,10 +712,11 @@ auto base_provider::start(api_item_added_callback api_item_added,
return false; return false;
} }
polling::instance().set_callback( polling::instance().set_callback({
{"check_deleted", polling::frequency::low, [this](auto &&stop_requested) { "check_deleted",
remove_deleted_files(stop_requested); polling::frequency::low,
}}); [this](auto &&stop_requested) { remove_deleted_files(stop_requested); },
});
return true; return true;
} }

View File

@ -1079,10 +1079,11 @@ auto encrypt_provider::start(api_item_added_callback /*api_item_added*/,
// TODO error handling // TODO error handling
} }
polling::instance().set_callback( polling::instance().set_callback({
{"check_deleted", polling::frequency::low, [this](auto &&stop_requested) { "check_deleted",
remove_deleted_files(stop_requested); polling::frequency::low,
}}); [this](auto &&stop_requested) { remove_deleted_files(stop_requested); },
});
event_system::instance().raise<service_started>("encrypt_provider"); event_system::instance().raise<service_started>("encrypt_provider");
return true; return true;