Fix retrying uploads by using Octokit retry plugin.

This commit is contained in:
Chris Gavin 2020-09-21 11:06:21 +01:00
parent e67ba57e65
commit 31c2eca167
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
118 changed files with 19025 additions and 117 deletions

10
node_modules/bottleneck/src/redis/queued.lua generated vendored Normal file
View file

@ -0,0 +1,10 @@
local clientTimeout = tonumber(redis.call('hget', settings_key, 'clientTimeout'))
local valid_clients = redis.call('zrangebyscore', client_last_seen_key, (now - clientTimeout), 'inf')
local client_queued = redis.call('hmget', client_num_queued_key, unpack(valid_clients))
local sum = 0
for i = 1, #client_queued do
sum = sum + tonumber(client_queued[i])
end
return sum