aboutsummaryrefslogtreecommitdiff
path: root/zenserver/compute/apply.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-29 15:45:28 +0200
committerMartin Ridgers <[email protected]>2021-10-29 15:49:27 +0200
commit7265eeb8c7ca57dae4688f431547f68b563b9926 (patch)
tree97a8f272b8856293509a7dcc47b1791de3b9df61 /zenserver/compute/apply.cpp
parentIf-def'd out Basic/SandboxedFuncJob classes and CreateProcess() calls (diff)
downloadzen-7265eeb8c7ca57dae4688f431547f68b563b9926.tar.xz
zen-7265eeb8c7ca57dae4688f431547f68b563b9926.zip
Marked DataHash as unused
Diffstat (limited to 'zenserver/compute/apply.cpp')
-rw-r--r--zenserver/compute/apply.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenserver/compute/apply.cpp b/zenserver/compute/apply.cpp
index 1d5de8d27..8ef520352 100644
--- a/zenserver/compute/apply.cpp
+++ b/zenserver/compute/apply.cpp
@@ -442,6 +442,8 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore,
SharedBuffer Decompressed = DataView.Decompress();
const uint64_t DecompressedSize = DataView.GetRawSize();
+ ZEN_UNUSED(DataHash);
+
TotalAttachmentBytes += DecompressedSize;
++AttachmentCount;
@@ -588,6 +590,8 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore,
const IoHash DataHash = Attachment.GetHash();
CompressedBuffer DataView = Attachment.AsCompressedBinary();
+ ZEN_UNUSED(DataHash);
+
const uint64_t CompressedSize = DataView.GetCompressedSize();
TotalAttachmentBytes += CompressedSize;