Software /
code /
prosody
Changeset
10551:27b275633156
mod_limits: Remove an unused variable
Hope this isn't meant to be used. 'outstanding' seems to be the more
useful value anyways?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 22:24:31 +0100 |
parents | 10550:0566b45da987 |
children | 10552:f1cf8c08a09d |
files | plugins/mod_limits.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_limits.lua Mon Dec 23 22:23:29 2019 +0100 +++ b/plugins/mod_limits.lua Mon Dec 23 22:24:31 2019 +0100 @@ -53,7 +53,7 @@ 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);