stream_topic_history: Pluralize remove_message.

Since this function now does a bulk operation with several messages,
we should make sure it's named appropriately.
This commit is contained in:
Tim Abbott
2020-06-15 10:52:00 -07:00
parent ba2de34414
commit 3087fbe854
6 changed files with 21 additions and 12 deletions

View File

@@ -196,10 +196,10 @@ exports.per_stream_history = function (stream_id) {
return self;
};
exports.remove_message = function (opts) {
exports.remove_messages = function (opts) {
const stream_id = opts.stream_id;
const topic_name = opts.topic_name;
const num_messages = opts.num_messages || 1;
const num_messages = opts.num_messages;
const history = stream_dict.get(stream_id);
// This is the special case of "removing" a message from