From e5ca9113797a23824dd4545d93221bd6379dd692 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 20 Jun 2024 16:56:25 +0200 Subject: Pass IExecutionApi to ServerImpl, Archive by reference ...instead of not_null const ptr. --- src/buildtool/main/archive.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/buildtool/main/archive.cpp') diff --git a/src/buildtool/main/archive.cpp b/src/buildtool/main/archive.cpp index 997857b4..92610397 100644 --- a/src/buildtool/main/archive.cpp +++ b/src/buildtool/main/archive.cpp @@ -49,13 +49,13 @@ void archive_entry_cleanup(archive_entry* entry) { // NOLINTNEXTLINE(misc-no-recursion) auto add_to_archive(archive* archive, - gsl::not_null const& api, + IExecutionApi const& api, const Artifact::ObjectInfo& artifact, const std::filesystem::path& location) -> bool { auto constexpr kExecutable = 0555; auto constexpr kFile = 0444; - auto payload = api->RetrieveToMemory(artifact); + auto payload = api.RetrieveToMemory(artifact); if (not payload) { Logger::Log(LogLevel::Error, "Failed to retrieve artifact {}", @@ -124,7 +124,7 @@ auto add_to_archive(archive* archive, } // namespace [[nodiscard]] auto GenerateArchive( - gsl::not_null const& api, + IExecutionApi const& api, const Artifact::ObjectInfo& artifact, const std::optional& output_path) -> bool { -- cgit v1.2.3