summaryrefslogtreecommitdiff
path: root/src/system_fsm/running.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/system_fsm/running.cpp')
-rw-r--r--src/system_fsm/running.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/system_fsm/running.cpp b/src/system_fsm/running.cpp
index 91cd46af..9c556e0a 100644
--- a/src/system_fsm/running.cpp
+++ b/src/system_fsm/running.cpp
@@ -55,8 +55,9 @@ void Running::entry() {
ESP_LOGI(kTag, "opening database");
sFileGatherer = new database::FileGathererImpl();
- auto database_res = database::Database::Open(
- *sFileGatherer, sServices->tag_parser(), sServices->collator());
+ auto database_res =
+ database::Database::Open(*sFileGatherer, sServices->tag_parser(),
+ sServices->collator(), sServices->bg_worker());
if (database_res.has_error()) {
ESP_LOGW(kTag, "failed to open!");
events::System().Dispatch(StorageError{});