diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-11 15:19:34 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-13 14:41:00 +0200 |
commit | 0b3c77edde2b3497e3d943d1433d704453eabd19 (patch) | |
tree | 94b83d991320297feffeb9930b05e1e0fc35100e /src/buildtool/execution_api/common/tree_reader.hpp | |
parent | ddf48a60029bed958fb2cf0238dbb0bca0b770fb (diff) | |
download | justbuild-0b3c77edde2b3497e3d943d1433d704453eabd19.tar.gz |
Check compatibility in readers based on the hash type
Diffstat (limited to 'src/buildtool/execution_api/common/tree_reader.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/tree_reader.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/tree_reader.hpp b/src/buildtool/execution_api/common/tree_reader.hpp index 18e94fe8..de1e2edf 100644 --- a/src/buildtool/execution_api/common/tree_reader.hpp +++ b/src/buildtool/execution_api/common/tree_reader.hpp @@ -59,7 +59,7 @@ class TreeReader final { return true; }; - if (ProtocolTraits::Instance().IsCompatible()) { + if (not impl_.IsNativeProtocol()) { auto tree = impl_.ReadDirectory(digest); if (tree and not TreeReaderUtils::ReadObjectInfos(*tree, store_info)) { @@ -132,7 +132,7 @@ class TreeReader final { : store(parent / path, info); }; - if (ProtocolTraits::Instance().IsCompatible()) { + if (not impl_.IsNativeProtocol()) { if (auto tree = impl_.ReadDirectory(digest)) { if (include_trees and IsDirectoryEmpty(*tree)) { if (not store(parent, {digest, ObjectType::Tree})) { |