diff options
| author | Stefan Boberg <[email protected]> | 2021-08-28 21:08:02 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-08-28 21:08:02 +0200 |
| commit | 91caa4f800586b9edcf2bb31b976350c7c9feaca (patch) | |
| tree | 4d967db9a03a308ed5c2be601ea01963ee064d02 /zenserver/zenserver.cpp | |
| parent | WriteResponse stub for CbPackage responses (awaiting decision on format with ... (diff) | |
| download | zen-91caa4f800586b9edcf2bb31b976350c7c9feaca.tar.xz zen-91caa4f800586b9edcf2bb31b976350c7c9feaca.zip | |
Basic implementation of function evaluation
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) { |