From 4ae3f068372041f949538fb273113a4a1c665a0f Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Thu, 22 Feb 2024 16:52:19 +0100 Subject: Rename constant for just-internal hash length --- src/buildtool/execution_api/execution_service/cas_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/cas_server.cpp') diff --git a/src/buildtool/execution_api/execution_service/cas_server.cpp b/src/buildtool/execution_api/execution_service/cas_server.cpp index e68092f8..49939c20 100644 --- a/src/buildtool/execution_api/execution_service/cas_server.cpp +++ b/src/buildtool/execution_api/execution_service/cas_server.cpp @@ -32,7 +32,7 @@ #include "src/utils/cpp/hex_string.hpp" #include "src/utils/cpp/verify_hash.hpp" -static constexpr std::size_t kJustHashLength = 42; +static constexpr std::size_t kGitSHA1Length = 42; static constexpr std::size_t kSHA256Length = 64; static auto IsValidHash(std::string const& x) -> bool { @@ -40,7 +40,7 @@ static auto IsValidHash(std::string const& x) -> bool { auto const& length = x.size(); return !error_msg and ((Compatibility::IsCompatible() and length == kSHA256Length) or - length == kJustHashLength); + length == kGitSHA1Length); } auto CASServiceImpl::FindMissingBlobs( -- cgit v1.2.3