spacewander commented on code in PR #7041:
URL: https://github.com/apache/apisix/pull/7041#discussion_r873536745
##########
apisix/stream/xrpc/protocols/redis/init.lua:
##########
@@ -31,6 +31,14 @@ local ipairs = ipairs
local tonumber = tonumber
+core.ctx.register_var("redis_cmd_line", function(ctx)
+ local cmd_line = ctx.cmd_line
+ if cmd_line and #cmd_line > 1 then
+ return core.table.concat(cmd_line, " ")
+ end
+ return ctx.cmd_line
Review Comment:
The ctx.cmd_line can be `["ping"]`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]