mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
local function is better
local function is the same as " local a; a = function"
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user