diff options
| author | Per Larsson <[email protected]> | 2021-11-11 11:37:31 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-11-11 11:37:31 +0100 |
| commit | efd0c3c0896c97c6cd37e6a6ac2edf331e5b4a3f (patch) | |
| tree | 2141d45bf4fdb79bd4fc6f245775f4ec0651adfb /zenserver/upstream/upstreamcache.h | |
| parent | Format and remove unused type. (diff) | |
| download | zen-efd0c3c0896c97c6cd37e6a6ac2edf331e5b4a3f.tar.xz zen-efd0c3c0896c97c6cd37e6a6ac2edf331e5b4a3f.zip | |
Removed batch result.
Diffstat (limited to 'zenserver/upstream/upstreamcache.h')
| -rw-r--r-- | zenserver/upstream/upstreamcache.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/zenserver/upstream/upstreamcache.h b/zenserver/upstream/upstreamcache.h index 71e7aed8d..681d8e96f 100644 --- a/zenserver/upstream/upstreamcache.h +++ b/zenserver/upstream/upstreamcache.h @@ -55,11 +55,6 @@ struct GetUpstreamCacheResult bool Success = false; }; -struct GetUpstreamCacheBatchResult -{ - std::vector<size_t> Missing; -}; - struct PutUpstreamCacheResult { std::string Reason; @@ -123,16 +118,16 @@ public: virtual GetUpstreamCacheResult GetCacheRecord(CacheKey CacheKey, ZenContentType Type) = 0; - virtual GetUpstreamCacheBatchResult GetCacheRecords(std::span<CacheKey> CacheKeys, - std::span<size_t> KeyIndex, - const CacheRecordPolicy& Policy, - OnCacheRecordGetComplete&& OnComplete) = 0; + virtual GetUpstreamCacheResult GetCacheRecords(std::span<CacheKey> CacheKeys, + std::span<size_t> KeyIndex, + const CacheRecordPolicy& Policy, + OnCacheRecordGetComplete&& OnComplete) = 0; virtual GetUpstreamCacheResult GetCachePayload(const CacheKey& CacheKey, const IoHash& PayloadId) = 0; - virtual GetUpstreamCacheBatchResult GetCachePayloads(std::span<CacheChunkRequest> CacheChunkRequests, - std::span<size_t> RequestIndex, - OnCachePayloadGetComplete&& OnComplete) = 0; + virtual GetUpstreamCacheResult GetCachePayloads(std::span<CacheChunkRequest> CacheChunkRequests, + std::span<size_t> RequestIndex, + OnCachePayloadGetComplete&& OnComplete) = 0; virtual PutUpstreamCacheResult PutCacheRecord(const UpstreamCacheRecord& CacheRecord, IoBuffer RecordValue, |