comparison mod_limits/mod_limits.lua @ 2057:1c126c49f5c1

mod_limits: Add newline between statements on long line
author Kim Alvefur <zash@zash.se>
date Wed, 02 Mar 2016 15:23:09 +0100
parents 92db76641b3f
children 55a7ef2fb628
comparison
equal deleted inserted replaced
2056:e16593e7d482 2057:1c126c49f5c1
63 local outstanding_data = bytes:sub(-outstanding); 63 local outstanding_data = bytes:sub(-outstanding);
64 bytes = bytes:sub(1, #bytes-outstanding); 64 bytes = bytes:sub(1, #bytes-outstanding);
65 timer.add_task(limits_resolution, function () 65 timer.add_task(limits_resolution, function ()
66 if not session.conn then return; end 66 if not session.conn then return; end
67 if throttle:peek(#outstanding_data) then 67 if throttle:peek(#outstanding_data) then
68 session.log("debug", "Resuming paused session"); session.conn:resume(); 68 session.log("debug", "Resuming paused session");
69 session.conn:resume();
69 end 70 end
70 -- Handle what we can of the outstanding data 71 -- Handle what we can of the outstanding data
71 session.data(outstanding_data); 72 session.data(outstanding_data);
72 end); 73 end);
73 end 74 end