mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
mod_csi: Rename unused loop variables to '_' [luacheck]
This commit is contained in:
parent
0a910917e7
commit
8d00eaa0c7
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ module:hook_global("stats-update", function()
|
||||||
count:with_labels("active"):set(0);
|
count:with_labels("active"):set(0);
|
||||||
count:with_labels("inactive"):set(0);
|
count:with_labels("inactive"):set(0);
|
||||||
count:with_labels("flushing"):set(0);
|
count:with_labels("flushing"):set(0);
|
||||||
for user, user_session in pairs(sessions) do
|
for _, user_session in pairs(sessions) do
|
||||||
for resource, session in pairs(user_session.sessions) do
|
for _, session in pairs(user_session.sessions) do
|
||||||
if session.state == "inactive" or session.state == "active" or session.state == "flushing" then
|
if session.state == "inactive" or session.state == "active" or session.state == "flushing" then
|
||||||
count:with_labels(session.state):add(1);
|
count:with_labels(session.state):add(1);
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue