]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Make time-sensitive tests in local machine time.
[stg.git] / projects / stargazer / main.cpp
index 825cba582e344faf7dfc5df230b5b192d7b7b043..bcf7af777f2bec80e9b8c89a11a54bcf63a05159 100644 (file)
@@ -282,7 +282,7 @@ int main(int argc, char* argv[])
         return -1;
     }
 
         return -1;
     }
 
-    auto& loop = EVENT_LOOP_SINGLETON::GetInstance();
+    auto& loop = EVENT_LOOP::instance();
 
     StoreLoader storeLoader(settings);
     if (storeLoader.load())
 
     StoreLoader storeLoader(settings);
     if (storeLoader.load())
@@ -304,6 +304,7 @@ int main(int argc, char* argv[])
 
     AdminsImpl admins(store);
     TariffsImpl tariffs(&store);
 
     AdminsImpl admins(store);
     TariffsImpl tariffs(&store);
+    tariffs.ReadTariffs();
     ServicesImpl services(&store);
     CorporationsImpl corps(&store);
     UsersImpl users(&settings, &store, &tariffs, services, admins.sysAdmin());
     ServicesImpl services(&store);
     CorporationsImpl corps(&store);
     UsersImpl users(&settings, &store, &tariffs, services, admins.sysAdmin());