Diff

plugins/mod_limits.lua @ 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
parent 10111:0f335815244f
child 11560:3bbb1af92514
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);