Skip to content

Commit 9e27f59

Browse files
committed
remove task overload warning
1 parent 82fa2f9 commit 9e27f59

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lualib/skynet.lua

-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ end
9797

9898
local coroutine_pool = {}
9999
local coroutine_yield = coroutine.yield
100-
local coroutine_count = 0
101100

102101
local function co_create(f)
103102
local co = table.remove(coroutine_pool)
@@ -111,11 +110,6 @@ local function co_create(f)
111110
f(coroutine_yield())
112111
end
113112
end)
114-
coroutine_count = coroutine_count + 1
115-
if coroutine_count > 1024 then
116-
skynet.error("May overload, create 1024 task")
117-
coroutine_count = 0
118-
end
119113
else
120114
coroutine.resume(co, f)
121115
end

0 commit comments

Comments
 (0)