From 7cbbca66c3a5e000f935c5dfbcc10d89ccbd3f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 19 Sep 2019 21:51:49 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/pub/brave.lua | 2 -- server-beta/src/pub/client.lua | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'server-beta') diff --git a/server-beta/src/pub/brave.lua b/server-beta/src/pub/brave.lua index 1102e8a3..9ee3dba4 100644 --- a/server-beta/src/pub/brave.lua +++ b/server-beta/src/pub/brave.lua @@ -1,5 +1,4 @@ local thread = require 'bee.thread' -local work = require 'work' ---@class pub_brave local m = {} @@ -11,7 +10,6 @@ function m.register(id) m.taskpad = thread.channel('taskpad' .. id) m.waiter = thread.channel('waiter' .. id) m.id = id - work.init() m.start() end diff --git a/server-beta/src/pub/client.lua b/server-beta/src/pub/client.lua index 2aec2593..c08068ba 100644 --- a/server-beta/src/pub/client.lua +++ b/server-beta/src/pub/client.lua @@ -9,7 +9,8 @@ local braveTemplate = [[ package.path = %q package.cpath = %q ---log = require 'work.log' +log = require 'work.log' +require 'work' local brave = require 'pub.brave' brave.register(%d) -- cgit v1.2.3