Skip to content

Commit

Permalink
refactor: removed the empty string separator argument from the table.…
Browse files Browse the repository at this point in the history
…concat() call because it is already the default. thanks alex-yam for the patch in #22.
  • Loading branch information
agentzh committed Sep 19, 2013
1 parent 841ee75 commit 6cbfbea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resty/redis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ local function _gen_req(args)
end

-- it is faster to do string concatenation on the Lua land
return concat(req, "")
return concat(req)
end


Expand All @@ -243,7 +243,7 @@ local function _do_cmd(self, ...)
return
end

-- print("request: ", table.concat(req, ""))
-- print("request: ", table.concat(req))

local bytes, err = sock:send(req)
if not bytes then
Expand Down

0 comments on commit 6cbfbea

Please sign in to comment.