summaryrefslogtreecommitdiff
path: root/server-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-19 21:51:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-19 21:51:49 +0800
commit7cbbca66c3a5e000f935c5dfbcc10d89ccbd3f95 (patch)
tree18e06fb5b7662b9f88f86b8e5410d2d2add6e3e8 /server-beta
parent18235bacf97dc0e0971ffbaeba29badee7998960 (diff)
downloadlua-language-server-7cbbca66c3a5e000f935c5dfbcc10d89ccbd3f95.zip
修正报错
Diffstat (limited to 'server-beta')
-rw-r--r--server-beta/src/pub/brave.lua2
-rw-r--r--server-beta/src/pub/client.lua3
2 files changed, 2 insertions, 3 deletions
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)