From 8dbd301a196041a36be455c1b4cedc81f0d634fe Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 12 Dec 2022 13:34:51 +0100 Subject: Changed so CompressedBuffer::DecodeRawHash returns IoHash just like on the UE side (#208) removed all use of IoHash::FromBLAKE3() caused by interactions with CompressedBuffer APIs --- zenserver/projectstore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zenserver/projectstore.cpp') diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index 2c44beaee..3e242653a 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -2578,7 +2578,7 @@ namespace testutils { Object.BeginArray("bulkdata"); for (const auto& Attachment : Attachments) { - CbAttachment Attach(Attachment.second, IoHash::FromBLAKE3(Attachment.second.DecodeRawHash())); + CbAttachment Attach(Attachment.second, Attachment.second.DecodeRawHash()); Object.BeginObject(); Object << "id"sv << Attachment.first; Object << "type"sv @@ -2834,7 +2834,7 @@ TEST_CASE("project.store.partial.read") } { IoBuffer Chunk; - CHECK(ProjectStore.GetChunk(IoHash::FromBLAKE3(Attachments[OpIds[1]][0].second.DecodeRawHash()).ToHexString(), + CHECK(ProjectStore.GetChunk(Attachments[OpIds[1]][0].second.DecodeRawHash().ToHexString(), HttpContentType::kCompressedBinary, Chunk) == HttpResponseCode::OK); IoHash RawHash; -- cgit v1.2.3