aboutsummaryrefslogtreecommitdiff
path: root/zenserver
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver')
-rw-r--r--zenserver/compute/apply.cpp4
-rw-r--r--zenserver/projectstore.cpp2
2 files changed, 3 insertions, 3 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;
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp
index 90ff79b30..1785aad9e 100644
--- a/zenserver/projectstore.cpp
+++ b/zenserver/projectstore.cpp
@@ -542,7 +542,7 @@ ProjectStore::Oplog::AppendNewOplogEntry(CbPackage OpPackage)
for (const auto& Attach : Attachments)
{
- IoBuffer AttachmentData = Attach.AsBinaryView().AsIoBuffer();
+ IoBuffer AttachmentData = Attach.AsBinary().AsIoBuffer();
CasStore::InsertResult Result = m_CasStore.InsertChunk(AttachmentData, Attach.GetHash());
const uint64_t AttachmentSize = AttachmentData.Size();