diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-23 22:24:31 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-23 22:24:31 +0100 |
commit | 7c8ad7bede58bd7a37da11eec8fef6ed83dc37f0 (patch) | |
tree | 211a95db62ec5896886d30aa530cd94a3724454c /plugins/mod_limits.lua | |
parent | 72a8c497ec2920ec0ab01ce2f5d01b514da58b8a (diff) | |
download | prosody-7c8ad7bede58bd7a37da11eec8fef6ed83dc37f0.tar.gz prosody-7c8ad7bede58bd7a37da11eec8fef6ed83dc37f0.zip |
mod_limits: Remove an unused variable
Hope this isn't meant to be used. 'outstanding' seems to be the more
useful value anyways?
Diffstat (limited to 'plugins/mod_limits.lua')
-rw-r--r-- | plugins/mod_limits.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_limits.lua b/plugins/mod_limits.lua index a1a3b2c0..024ab686 100644 --- a/plugins/mod_limits.lua +++ b/plugins/mod_limits.lua @@ -53,7 +53,7 @@ local default_filter_set = {}; function default_filter_set.bytes_in(bytes, session) local sess_throttle = session.throttle; if sess_throttle then - local ok, balance, outstanding = sess_throttle:poll(#bytes, true); + local ok, _, outstanding = sess_throttle:poll(#bytes, true); if not ok then session.log("debug", "Session over rate limit (%d) with %d (by %d), pausing", sess_throttle.max, #bytes, outstanding); outstanding = ceil(outstanding); |