diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-12 13:55:00 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | 55f8fdf0aa397324e08157ff29512506e2cce243 (patch) | |
tree | 510fd4540a030b6429bd915bbe0d6f36907d0e17 | |
parent | d33e9a4f9f5a30711aa673f35f0b31bfb3f1b7c8 (diff) | |
download | justbuild-55f8fdf0aa397324e08157ff29512506e2cce243.tar.gz |
Use a fixed HashFunction is source_tree
-rw-r--r-- | src/buildtool/serve_api/serve_service/source_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/serve_service/source_tree.cpp b/src/buildtool/serve_api/serve_service/source_tree.cpp index f86fdb45..6feb9288 100644 --- a/src/buildtool/serve_api/serve_service/source_tree.cpp +++ b/src/buildtool/serve_api/serve_service/source_tree.cpp @@ -1159,7 +1159,7 @@ auto SourceTreeService::ServeDistdirTree( kv.name(), std::make_pair(blob_digest, kv.executable())); } // get hash of distdir content; this must match with that in just-mr - auto content_id = HashFunction::Instance() + auto content_id = HashFunction{HashFunction::JustHash::Native} .ComputeBlobHash(nlohmann::json(content_list).dump()) .HexString(); // create in-memory tree of the distdir, now that we know we have all blobs |