mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-29 06:36:02 +00:00
10 lines
299 B
Lua
10 lines
299 B
Lua
local incr = tonumber(ARGV[num_static_argv + 1])
|
|
|
|
redis.call('hincrby', settings_key, 'reservoir', incr)
|
|
|
|
local reservoir = process_tick(now, true)['reservoir']
|
|
|
|
local groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))
|
|
refresh_expiration(0, 0, groupTimeout)
|
|
|
|
return reservoir
|