refactor event system
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
This commit is contained in:
parent
eb26f59059
commit
3b4767290b
@ -22,7 +22,6 @@
|
||||
#include "file_manager/cache_size_mgr.hpp"
|
||||
|
||||
#include "app_config.hpp"
|
||||
#include "events/event.hpp"
|
||||
#include "events/event_system.hpp"
|
||||
#include "types/startup_exception.hpp"
|
||||
#include "utils/file_utils.hpp"
|
||||
@ -55,7 +54,7 @@ auto cache_size_mgr::expand(std::uint64_t size) -> api_error {
|
||||
cache_dir.count() > 1U) {
|
||||
if (last_cache_size != cache_size_) {
|
||||
event_system::instance().raise<max_cache_size_reached>(cache_size_,
|
||||
max_cache_size);
|
||||
max_cache_size);
|
||||
last_cache_size = cache_size_;
|
||||
}
|
||||
notify_.wait_for(lock, cache_wait_secs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user