diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2024-02-22 16:52:19 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2024-02-26 11:05:26 +0100 |
commit | 4ae3f068372041f949538fb273113a4a1c665a0f (patch) | |
tree | 7c1cc6cc25d2987b64e62310cec947b2dad72c1f /src/buildtool/execution_api/execution_service/cas_server.cpp | |
parent | 8793a8caf89d07e2a470d06b365ee9065e8276f1 (diff) | |
download | justbuild-4ae3f068372041f949538fb273113a4a1c665a0f.tar.gz |
Rename constant for just-internal hash length
Diffstat (limited to 'src/buildtool/execution_api/execution_service/cas_server.cpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/cas_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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( |