Diff

net/server_select.lua @ 7468:2d38a2519d09

net.server_select: remove unused one-letter loop variables [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 09 Jul 2016 00:37:34 +0800
parent 7323:a1570219b865
child 7477:f9e470026042
child 7501:8c3d93b67560
line wrap: on
line diff
--- a/net/server_select.lua	Thu Jul 07 18:48:58 2016 +0200
+++ b/net/server_select.lua	Sat Jul 09 00:37:34 2016 +0800
@@ -864,7 +864,7 @@
 	local next_timer_time = math_huge;
 	repeat
 		local read, write, err = socket_select( _readlist, _sendlist, math_min(_selecttimeout, next_timer_time) )
-		for i, socket in ipairs( write ) do -- send data waiting in writequeues
+		for _, socket in ipairs( write ) do -- send data waiting in writequeues
 			local handler = _socketlist[ socket ]
 			if handler then
 				handler.sendbuffer( )
@@ -873,7 +873,7 @@
 				out_put "server.lua: found no handler and closed socket (writelist)"	-- this should not happen
 			end
 		end
-		for i, socket in ipairs( read ) do -- receive data
+		for _, socket in ipairs( read ) do -- receive data
 			local handler = _socketlist[ socket ]
 			if handler then
 				handler.readbuffer( )