Skip to content

Commit

Permalink
Update src/commands/cmd_server.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Twice <twice@apache.org>
  • Loading branch information
git-hulk and PragmaTwice authored Aug 8, 2024
1 parent 2e0e1fa commit f6279ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/cmd_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ class CommandPollUpdates : public Commander {
next_sequence = batch.sequence + batch.writeBatchPtr->Count() - 1;
}

*output = conn->Map(std::map<std::string, std::string>{
*output = conn->Map({
{redis::BulkString("latest_sequence"), redis::Integer(srv->storage->LatestSeqNumber())},
{redis::BulkString("updates"), std::move(updates)},
{redis::BulkString("next_sequence"), redis::Integer(next_sequence)},
Expand Down

0 comments on commit f6279ad

Please sign in to comment.