aboutsummaryrefslogtreecommitdiff
path: root/zenserver/compute/apply.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-02 13:01:52 +0200
committerStefan Boberg <[email protected]>2021-09-02 13:01:52 +0200
commit709c2f8afebe9151aa947ec53ab801c2e5be4746 (patch)
treef64fb6137580d21d116563776b4708207e4c352d /zenserver/compute/apply.cpp
parentAdded HashMemory() function accepting CompositeBuffer argument (diff)
downloadzen-709c2f8afebe9151aa947ec53ab801c2e5be4746.tar.xz
zen-709c2f8afebe9151aa947ec53ab801c2e5be4746.zip
Introduced support for compressed buffer attachments
Diffstat (limited to 'zenserver/compute/apply.cpp')
-rw-r--r--zenserver/compute/apply.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver/compute/apply.cpp b/zenserver/compute/apply.cpp
index b0d21d53a..c3d8c01ab 100644
--- a/zenserver/compute/apply.cpp
+++ b/zenserver/compute/apply.cpp
@@ -429,7 +429,7 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore,
ZEN_ASSERT(Attachment.IsBinary());
const IoHash DataHash = Attachment.GetHash();
- SharedBuffer DataView = Attachment.AsBinaryView();
+ SharedBuffer DataView = Attachment.AsBinary();
TotalAttachmentBytes += DataView.GetSize();
++AttachmentCount;
@@ -571,7 +571,7 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore,
ZEN_ASSERT(Attachment.IsBinary());
const IoHash DataHash = Attachment.GetHash();
- SharedBuffer DataView = Attachment.AsBinaryView();
+ SharedBuffer DataView = Attachment.AsBinary();
TotalAttachmentBytes += DataView.GetSize();
++AttachmentCount;