Skip to content

Commit

Permalink
Added tostring to locals and removed unused argument from client.send…
Browse files Browse the repository at this point in the history
…_frame.
  • Loading branch information
bungle committed Nov 27, 2015
1 parent 2278a97 commit a566024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resty/websocket/client.lua
Expand Up @@ -230,7 +230,7 @@ function _M.recv_frame(self)
end


local function send_frame(self, fin, opcode, payload, max_payload_len)
local function send_frame(self, fin, opcode, payload)
if self.fatal then
return nil, "fatal error already happened"
end
Expand Down
3 changes: 2 additions & 1 deletion lib/resty/websocket/protocol.lua
Expand Up @@ -12,7 +12,8 @@ local bor = bit.bor
local bxor = bit.bxor
local lshift = bit.lshift
local rshift = bit.rshift
local tohex = bit.tohex
--local tohex = bit.tohex
local tostring = tostring
local concat = table.concat
local str_char = string.char
local rand = math.random
Expand Down

0 comments on commit a566024

Please sign in to comment.