Software /
code /
prosody
Comparison
plugins/mod_net_multiplex.lua @ 7502:021d2b844c51
mod_net_multiplex: remove unused one-letter loop variable [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 14 Jul 2016 18:51:22 +0800 |
parent | 6380:4220ffb87b22 |
child | 7807:caf26fc419e9 |
comparison
equal
deleted
inserted
replaced
7501:8c3d93b67560 | 7502:021d2b844c51 |
---|---|
17 end | 17 end |
18 module:hook("service-added", function (event) add_service(event.service); end); | 18 module:hook("service-added", function (event) add_service(event.service); end); |
19 module:hook("service-removed", function (event) available_services[event.service] = nil; end); | 19 module:hook("service-removed", function (event) available_services[event.service] = nil; end); |
20 | 20 |
21 for service_name, services in pairs(portmanager.get_registered_services()) do | 21 for service_name, services in pairs(portmanager.get_registered_services()) do |
22 for i, service in ipairs(services) do | 22 for _, service in ipairs(services) do |
23 add_service(service); | 23 add_service(service); |
24 end | 24 end |
25 end | 25 end |
26 | 26 |
27 local buffers = {}; | 27 local buffers = {}; |