diff options
| author | Stefan Boberg <[email protected]> | 2021-08-28 21:10:07 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-08-28 21:10:07 +0200 |
| commit | 82d373e7fa382db18bf123f7ca69e343567c5196 (patch) | |
| tree | 34fcedc392c6b9dab7ff77d84f75877988672db8 /zenserver/zenserver.cpp | |
| parent | Added basic file logging (diff) | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-82d373e7fa382db18bf123f7ca69e343567c5196.tar.xz zen-82d373e7fa382db18bf123f7ca69e343567c5196.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zenserver/zenserver.cpp')
| -rw-r--r-- | zenserver/zenserver.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index 8c2fcf35d..32a468452 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -101,26 +101,30 @@ public: // Ok so now we're configured, let's kick things off + spdlog::info("initializing storage"); + zen::CasStoreConfiguration Config; Config.RootDirectory = m_DataRoot / "cas"; m_CasStore->Initialize(Config); + m_CidStore = std::make_unique<zen::CidStore>(*m_CasStore, m_DataRoot / "cid"); + spdlog::info("instantiating project service"); m_ProjectStore = new zen::ProjectStore(*m_CasStore, m_DataRoot / "projects"); m_HttpProjectService.reset(new zen::HttpProjectService{*m_CasStore, m_ProjectStore}); m_LocalProjectService = zen::LocalProjectService::New(*m_CasStore, m_ProjectStore); + spdlog::info("instantiating compute services"); + std::filesystem::path SandboxDir = m_DataRoot / "exec" / "sandbox"; zen::CreateDirectories(SandboxDir); m_HttpLaunchService = std::make_unique<zen::HttpLaunchService>(*m_CasStore, SandboxDir); std::filesystem::path ApplySandboxDir = m_DataRoot / "exec" / "apply"; zen::CreateDirectories(ApplySandboxDir); - m_HttpFunctionService = std::make_unique<zen::HttpFunctionService>(*m_CasStore, ApplySandboxDir); - - m_CidStore = std::make_unique<zen::CidStore>(*m_CasStore, m_DataRoot / "cid"); + m_HttpFunctionService = std::make_unique<zen::HttpFunctionService>(*m_CasStore, *m_CidStore, ApplySandboxDir); if (ServiceConfig.LegacyCacheEnabled) { |