summaryrefslogtreecommitdiff
path: root/server/src/async/proto.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-22 16:07:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-22 16:07:06 +0800
commitd4b4de10daf18e389fc2b1c5d06e20ed433fcf04 (patch)
tree5af41a1abf037c433d04bf257f30099cb93c01bd /server/src/async/proto.lua
parent4ffc826d7ce5ca57c2929e040ed5eefb53f9d115 (diff)
downloadlua-language-server-d4b4de10daf18e389fc2b1c5d06e20ed433fcf04.zip
整理代码
Diffstat (limited to 'server/src/async/proto.lua')
-rw-r--r--server/src/async/proto.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/async/proto.lua b/server/src/async/proto.lua
index 4570de2e..ef0b3300 100644
--- a/server/src/async/proto.lua
+++ b/server/src/async/proto.lua
@@ -1,7 +1,4 @@
-local thread = require 'bee.thread'
local json = require 'json'
-local proto = thread.channel 'proto'
-local errlog = thread.channel 'errlog'
local function pushError(...)
local t = table.pack(...)
@@ -9,7 +6,7 @@ local function pushError(...)
t[i] = tostring(t[i])
end
local buf = table.concat(t, '\t')
- errlog:push(buf)
+ ERR:push(buf)
end
local function readProtoHeader()
@@ -51,7 +48,7 @@ local function readProto()
if not data then
return
end
- proto:push(data)
+ OUT:push(data)
end
while true do