From 7f9c3c8c9a99b87adff4f3d732b2b9bf905b4d0b Mon Sep 17 00:00:00 2001 From: snail Date: Sun, 30 Aug 2015 18:17:41 +0800 Subject: [PATCH] local function is better local function is the same as " local a; a = function" --- lualib/skynet.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lualib/skynet.lua b/lualib/skynet.lua index 56d62e6c..554d8ff8 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -186,8 +186,7 @@ function suspend(co, result, command, param, size) error(debug.traceback(co)) end local f = param - local response - response = function(ok, ...) + local function response(ok, ...) if ok == "TEST" then if dead_service[co_address] then release_watching(co_address)