Comparison

util/statsd.lua @ 7701:672a863105f6

util.statsd: Ignore unused argument [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 18 Oct 2016 15:17:29 +0200
parent 7522:ebf2e77ac8a7
child 7988:dc758422d896
comparison
equal deleted inserted replaced
7700:0d70410efdcf 7701:672a863105f6
42 if initial then 42 if initial then
43 send_gauge(name, initial); 43 send_gauge(name, initial);
44 end 44 end
45 return function (new_v) send_gauge(name, new_v); end 45 return function (new_v) send_gauge(name, new_v); end
46 end; 46 end;
47 counter = function (name, initial) 47 counter = function (name, initial) --luacheck: ignore 212/initial
48 return function (delta) 48 return function (delta)
49 send_gauge(name, delta, true); 49 send_gauge(name, delta, true);
50 end; 50 end;
51 end; 51 end;
52 rate = function (name) 52 rate = function (name)