PragmaTwice commented on code in PR #2745:
URL: https://github.com/apache/kvrocks/pull/2745#discussion_r1930101409


##########
src/commands/cmd_server.cc:
##########
@@ -1297,6 +1299,8 @@ class CommandPollUpdates : public Commander {
         auto format = GET_OR_RET(parser.TakeStr());
         if (util::EqualICase(format, "RAW")) {
           format_ = Format::Raw;
+        } else if (util::EqualICase(format, "RESP")) {
+          format_ = Format::RESP;
         } else {
           return {Status::RedisParseErr, "invalid FORMAT option, only support 
RAW"};

Review Comment:
   ```suggestion
             return {Status::RedisParseErr, "invalid FORMAT option, should be 
RAW or RESP"};
   ```



-- 
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]

Reply via email to