mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
@@ -1,6 +1,4 @@
|
|||||||
local io = io
|
|
||||||
local table = table
|
local table = table
|
||||||
local debug = debug
|
|
||||||
|
|
||||||
return function (skynet, export)
|
return function (skynet, export)
|
||||||
|
|
||||||
|
|||||||
@@ -244,7 +244,9 @@ local function hook_dispatch(dispatcher, resp, fd, channel)
|
|||||||
func = replace_upvalue(dispatcher, HOOK_FUNC, hook)
|
func = replace_upvalue(dispatcher, HOOK_FUNC, hook)
|
||||||
if func then
|
if func then
|
||||||
local function idle()
|
local function idle()
|
||||||
skynet.timeout(10,idle) -- idle every 0.1s
|
if raw_dispatcher then
|
||||||
|
skynet.timeout(10,idle) -- idle every 0.1s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
skynet.timeout(0, idle)
|
skynet.timeout(0, idle)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
local si = require "snax.interface"
|
local si = require "snax.interface"
|
||||||
local io = io
|
|
||||||
|
|
||||||
local hotfix = {}
|
|
||||||
|
|
||||||
local function envid(f)
|
local function envid(f)
|
||||||
local i = 1
|
local i = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user