diff options
| author | Stefan Boberg <[email protected]> | 2021-11-04 08:53:20 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-11-04 08:53:20 +0100 |
| commit | d95f169b1e777b16fdd60787c35c48de4285515b (patch) | |
| tree | 5fcd7300b28c886b835f47954f0e9d98264de6c7 /zenserver/upstream/upstreamcache.cpp | |
| parent | added dummy file in location reserved for third-party licenses (diff) | |
| parent | Type consistency around signed/unsigned comparison (diff) | |
| download | zen-d95f169b1e777b16fdd60787c35c48de4285515b.tar.xz zen-d95f169b1e777b16fdd60787c35c48de4285515b.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
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 c0cd858b6..a260cb40d 100644 --- a/zenserver/upstream/upstreamcache.cpp +++ b/zenserver/upstream/upstreamcache.cpp @@ -178,7 +178,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 { @@ -223,7 +223,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]); } @@ -479,7 +479,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 { |