diff options
| author | Stefan Boberg <[email protected]> | 2021-09-13 22:25:03 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-13 22:25:03 +0200 |
| commit | f277fad0ea747807021bb92ae8fd026384901fb7 (patch) | |
| tree | ffdcb6af33450105d3dc0d5046bec8090d6dff27 /zenserver/testing/httptest.cpp | |
| parent | Changed package parsing test code (diff) | |
| download | zen-f277fad0ea747807021bb92ae8fd026384901fb7.tar.xz zen-f277fad0ea747807021bb92ae8fd026384901fb7.zip | |
Implemented intended package streaming API flow (but currently it "streams" from memory)
Diffstat (limited to 'zenserver/testing/httptest.cpp')
| -rw-r--r-- | zenserver/testing/httptest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/zenserver/testing/httptest.cpp b/zenserver/testing/httptest.cpp index b44db2722..c4fd6003c 100644 --- a/zenserver/testing/httptest.cpp +++ b/zenserver/testing/httptest.cpp @@ -96,12 +96,11 @@ HttpTestingService::PackageHandler::OnRequestComplete() { } -zen::IoBuffer +IoBuffer HttpTestingService::PackageHandler::CreateTarget(const IoHash& Cid, uint64_t StorageSize) { - ZEN_UNUSED(Cid, StorageSize); - - return {}; + ZEN_UNUSED(Cid); + return IoBuffer{StorageSize}; } } // namespace zen |