initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
6
dawidd6/action-download-artifact-v3/node_modules/bottleneck/src/redis/check.lua
generated
vendored
Normal file
6
dawidd6/action-download-artifact-v3/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue