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/stream_dumper.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/stream_dumper.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/stream_dumper.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/stream_dumper.hpp b/src/buildtool/execution_api/common/stream_dumper.hpp index ea0a323d..c1d99588 100644 --- a/src/buildtool/execution_api/common/stream_dumper.hpp +++ b/src/buildtool/execution_api/common/stream_dumper.hpp @@ -65,7 +65,7 @@ class StreamDumper final { [[nodiscard]] auto DumpTree( Artifact::ObjectInfo const& info, gsl::not_null<FILE*> const& stream) const noexcept -> bool { - if (ProtocolTraits::Instance().IsCompatible()) { + if (not impl_.IsNativeProtocol()) { auto directory = impl_.ReadDirectory(info.digest); auto data = directory ? TreeReaderUtils::DirectoryToString(*directory) |