diff options
| author | Per Larsson <[email protected]> | 2021-08-31 15:25:09 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-08-31 15:25:09 +0200 |
| commit | b0d04a27557043037169f0b5ff66ccfb4152c534 (patch) | |
| tree | e9290eb45dce63545b42083a5af2c4233c22f56c | |
| parent | Asynchronous upstream caching to Jupiter (diff) | |
| download | zen-b0d04a27557043037169f0b5ff66ccfb4152c534.tar.xz zen-b0d04a27557043037169f0b5ff66ccfb4152c534.zip | |
Format fix.
| -rw-r--r-- | zencore/filesystem.cpp | 3 | ||||
| -rw-r--r-- | zenserver/compute/apply.cpp | 2 | ||||
| -rw-r--r-- | zenstore/filecas.cpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index 591630b75..ec3de0306 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -443,7 +443,7 @@ WriteFile(std::filesystem::path Path, const IoBuffer* const* Data, size_t Buffer } } -void +void WriteFile(std::filesystem::path Path, IoBuffer Data) { const IoBuffer* const DataPtr = &Data; @@ -451,7 +451,6 @@ WriteFile(std::filesystem::path Path, IoBuffer Data) WriteFile(Path, &DataPtr, 1); } - FileContents ReadFile(std::filesystem::path Path) { diff --git a/zenserver/compute/apply.cpp b/zenserver/compute/apply.cpp index 32088ecc2..b0d21d53a 100644 --- a/zenserver/compute/apply.cpp +++ b/zenserver/compute/apply.cpp @@ -879,7 +879,7 @@ HttpFunctionService::ExecAction(const WorkerDesc& Worker, CbObject Action) { throw std::system_error(ChunkData.ErrorCode, "Failed to read build output chunk file"); } - + ZEN_ASSERT(OutputData.Data.size() == 1); CbAttachment Attachment(SharedBuffer(ChunkData.Data[0]), Hash); diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp index 7465e5182..2ae2676d3 100644 --- a/zenstore/filecas.cpp +++ b/zenstore/filecas.cpp @@ -99,7 +99,7 @@ FileCasStrategy::InsertChunk(IoBuffer Chunk, const IoHash& ChunkHash) if (HRESULT hRes = PayloadFile.Create(ShardedPath.c_str(), GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING); SUCCEEDED(hRes)) { - // If we succeeded in opening the target file then we don't need to do anything else because it already exists + // If we succeeded in opening the target file then we don't need to do anything else because it already exists // and should contain the content we were about to insert // We do need to ensure the source file goes away on close, however |