Skip to content

Commit ba12a96

Browse files
committed
解决两个警告
1 parent 7ac81bc commit ba12a96

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

extension/script/backend/worker.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,9 @@ function event.print(...)
686686
for i = 1, args.n do
687687
res[#res + 1] = variables.tostring(args[i])
688688
end
689-
res = table.concat(res, '\t')..'\n'
689+
local str = table.concat(res, '\t')..'\n'
690690
rdebug.getinfo(1, "Sl", info)
691-
stdout(res, info)
691+
stdout(str, info)
692692
return true
693693
end
694694

extension/script/common/net.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ local EPOLLOUT <const> = epoll.EPOLLOUT
99
local EPOLLERR <const> = epoll.EPOLLERR
1010
local EPOLLHUP <const> = epoll.EPOLLHUP
1111

12-
local function fd_set_read(s)
13-
if s._flags & EPOLLIN ~= 0 then
14-
return
15-
end
16-
s._flags = s._flags | EPOLLIN
17-
epfd:event_mod(s._fd, s._flags)
18-
end
19-
2012
local function fd_clr_read(s)
2113
if s._flags & EPOLLIN == 0 then
2214
return

0 commit comments

Comments
 (0)