Skip to content

Commit

Permalink
remove 'flush_batched'
Browse files Browse the repository at this point in the history
  • Loading branch information
liuminghang committed Jun 1, 2020
1 parent 9e000a2 commit 21b1ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/redis_c++/redis_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class GetCommandHandler : public brpc::RedisCommandHandler {

brpc::RedisCommandHandlerResult Run(const std::vector<butil::StringPiece>& args,
brpc::RedisReply* output,
bool flush_batched) override {
bool /*flush_batched*/) override {
if (args.size() != 2ul) {
output->FormatError("Expect 1 arg for 'get', actually %lu", args.size()-1);
return brpc::REDIS_CMD_HANDLED;
Expand All @@ -92,7 +92,7 @@ class SetCommandHandler : public brpc::RedisCommandHandler {

brpc::RedisCommandHandlerResult Run(const std::vector<butil::StringPiece>& args,
brpc::RedisReply* output,
bool flush_batched) override {
bool /*flush_batched*/) override {
if (args.size() != 3ul) {
output->FormatError("Expect 2 args for 'set', actually %lu", args.size()-1);
return brpc::REDIS_CMD_HANDLED;
Expand Down

0 comments on commit 21b1ece

Please sign in to comment.