diff options
| author | Per Larsson <[email protected]> | 2021-11-11 15:10:08 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-11-11 15:10:08 +0100 |
| commit | b15b04b55ecfa0335c168561c61a7568538fccb8 (patch) | |
| tree | 40f68a324f081746c74c423d8c478d3da6b1b4cc /zenserver/upstream/upstreamcache.cpp | |
| parent | Handle batch requests asynchronously. (diff) | |
| parent | Format fix. (diff) | |
| download | zen-b15b04b55ecfa0335c168561c61a7568538fccb8.tar.xz zen-b15b04b55ecfa0335c168561c61a7568538fccb8.zip | |
Merge branch 'main' into zcache-batch
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
| -rw-r--r-- | zenserver/upstream/upstreamcache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp index b486b751c..174c3d17a 100644 --- a/zenserver/upstream/upstreamcache.cpp +++ b/zenserver/upstream/upstreamcache.cpp @@ -262,7 +262,7 @@ namespace detail { using namespace fmt::literals; ZEN_ASSERT(CacheRecord.PayloadIds.size() == Payloads.size()); - const size_t MaxAttempts = 3; + const int32_t MaxAttempts = 3; try { @@ -307,7 +307,7 @@ namespace detail { const size_t Idx = std::distance(std::begin(CacheRecord.PayloadIds), It); CloudCacheResult BlobResult; - for (size_t Attempt = 0; Attempt < MaxAttempts && !BlobResult.Success; Attempt++) + for (int32_t Attempt = 0; Attempt < MaxAttempts && !BlobResult.Success; Attempt++) { BlobResult = Session.PutCompressedBlob(CacheRecord.PayloadIds[Idx], Payloads[Idx]); } @@ -726,7 +726,7 @@ namespace detail { std::span<IoBuffer const> Payloads) override { ZEN_ASSERT(CacheRecord.PayloadIds.size() == Payloads.size()); - const uint32_t MaxAttempts = 3; + const int32_t MaxAttempts = 3; try { |