Fix retrying uploads by using Octokit retry plugin.
This commit is contained in:
parent
e67ba57e65
commit
31c2eca167
118 changed files with 19025 additions and 117 deletions
10
node_modules/bottleneck/src/redis/queued.lua
generated
vendored
Normal file
10
node_modules/bottleneck/src/redis/queued.lua
generated
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue