unit tests and fixes
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good

This commit is contained in:
2023-11-30 13:32:06 -06:00
parent 5911d370e5
commit dfa5e0e005
2 changed files with 28 additions and 6 deletions

View File

@@ -711,6 +711,10 @@ auto file_manager::rename_file(const std::string &from_api_path,
}
void file_manager::start() {
polling::instance().set_callback(
{"timed_out_close", polling::frequency::second,
[this]() { this->close_timed_out_files(); }});
if (provider_.is_direct_only()) {
stop_requested_ = false;
return;
@@ -791,9 +795,6 @@ void file_manager::start() {
upload_thread_ =
std::make_unique<std::thread>([this] { upload_handler(); });
polling::instance().set_callback(
{"timed_out_close", polling::frequency::second,
[this]() { this->close_timed_out_files(); }});
event_system::instance().raise<service_started>("file_manager");
}
}