Download node_modules/bottleneck/src/redis/check.lua from mikmc5/aistats: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/bottleneck/src/redis/check.lua
- Command line
-
hf download hf://spaces/mikmc5/aistats/node_modules/bottleneck/src/redis/check.lua
-
curl -L -o check.lua https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/bottleneck/src/redis/check.lua
254 Bytes
| 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 | |