# HG changeset patch # User Kim Alvefur # Date 1577136271 -3600 # Node ID 27b2756331567b49aadeb528e6f6560073a3b8a1 # Parent 0566b45da9874a17e25fcdb581708f75cbd38d79 mod_limits: Remove an unused variable Hope this isn't meant to be used. 'outstanding' seems to be the more useful value anyways? diff -r 0566b45da987 -r 27b275633156 plugins/mod_limits.lua --- 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);