mirror of
https://github.com/github/codeql-action.git
synced 2026-01-05 14:10:11 +08:00
Fix retrying uploads by using Octokit retry plugin.
This commit is contained in:
6
node_modules/bottleneck/src/redis/check.lua
generated
vendored
Normal file
6
node_modules/bottleneck/src/redis/check.lua
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
local weight = tonumber(ARGV[num_static_argv + 1])
|
||||
|
||||
local capacity = process_tick(now, false)['capacity']
|
||||
local nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))
|
||||
|
||||
return conditions_check(capacity, weight) and nextRequest - now <= 0
|
||||
Reference in New Issue
Block a user