Skip to content

Commit

Permalink
update map int entity construction to auto construction, it will be `…
Browse files Browse the repository at this point in the history
…uint64()` which is 0
  • Loading branch information
LindaSummer committed Jun 2, 2024
1 parent e04ee84 commit 1e03f65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/types/redis_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,7 @@ rocksdb::Status Stream::DeletePelEntries(const Slice &stream_name, const std::st

// increment ack for each related consumer
auto pel_entry = decodeStreamPelEntryValue(value);
if (consumer_acknowledges.find(pel_entry.consumer_name) == consumer_acknowledges.cend()) {
consumer_acknowledges[pel_entry.consumer_name] = 1;
} else {
consumer_acknowledges[pel_entry.consumer_name] += 1;
}
consumer_acknowledges[pel_entry.consumer_name]++;
}
}
if (*acknowledged > 0) {
Expand Down

0 comments on commit 1e03f65

Please sign in to comment.