diff options
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.cpp')
-rw-r--r-- | src/buildtool/serve_api/remote/target_client.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.cpp b/src/buildtool/serve_api/remote/target_client.cpp index 0cb47ffd..4d11fe84 100644 --- a/src/buildtool/serve_api/remote/target_client.cpp +++ b/src/buildtool/serve_api/remote/target_client.cpp @@ -41,14 +41,14 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key, const std::string& repo_key) const noexcept -> std::optional<serve_target_result_t> { // make sure the blob containing the key is in the remote cas - if (!apis_.local->RetrieveToCas({key.Id()}, *apis_.remote)) { + if (not apis_.local->RetrieveToCas({key.Id()}, *apis_.remote)) { return serve_target_result_t{ std::in_place_index<1>, fmt::format("Failed to retrieve to remote cas ObjectInfo {}", key.Id().ToString())}; } // make sure the repository configuration blob is in the remote cas - if (!apis_.local->RetrieveToCas( + if (not apis_.local->RetrieveToCas( {Artifact::ObjectInfo{.digest = ArtifactDigest{repo_key, 0, false}, .type = ObjectType::File}}, *apis_.remote)) { @@ -95,7 +95,7 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key, } auto const& dispatch_info = Artifact::ObjectInfo{ .digest = ArtifactDigest{*dispatch_dgst}, .type = ObjectType::File}; - if (!apis_.local->RetrieveToCas({dispatch_info}, *apis_.remote)) { + if (not apis_.local->RetrieveToCas({dispatch_info}, *apis_.remote)) { return serve_target_result_t{ std::in_place_index<1>, fmt::format("Failed to upload blob {} to remote cas", @@ -127,8 +127,8 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key, ArtifactDigest{response.target_value()}; auto const& obj_info = Artifact::ObjectInfo{ .digest = target_value_dgst, .type = ObjectType::File}; - if (!apis_.local->IsAvailable(target_value_dgst)) { - if (!apis_.remote->RetrieveToCas({obj_info}, *apis_.local)) { + if (not apis_.local->IsAvailable(target_value_dgst)) { + if (not apis_.remote->RetrieveToCas({obj_info}, *apis_.local)) { return serve_target_result_t{ std::in_place_index<1>, fmt::format( @@ -138,7 +138,7 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key, } auto const& target_value_str = apis_.local->RetrieveToMemory(obj_info); - if (!target_value_str) { + if (not target_value_str) { return serve_target_result_t{ std::in_place_index<1>, fmt::format("Failed to retrieve blob {} from local cas", |