Log number of group call updates to be processed.

This commit is contained in:
levlam 2022-05-10 21:02:03 +03:00
parent 71d5dd526e
commit 661c75fa42

View File

@ -1811,6 +1811,8 @@ void GroupCallManager::on_update_group_call_participants(
auto &pending_version_updates = group_call_participants->pending_version_updates_[version].updates;
auto &pending_mute_updates = group_call_participants->pending_mute_updates_[version].updates;
LOG(INFO) << "Have " << pending_version_updates.size() << " versioned and " << pending_mute_updates.size()
<< " mute pending updates for " << input_group_call_id;
for (auto &group_call_participant : participants) {
GroupCallParticipant participant(group_call_participant, version);
if (!participant.is_valid()) {
@ -1864,6 +1866,9 @@ bool GroupCallManager::process_pending_group_call_participant_updates(InputGroup
auto &pending_version_updates = participants_it->second->pending_version_updates_;
auto &pending_mute_updates = participants_it->second->pending_mute_updates_;
LOG(INFO) << "Process " << pending_version_updates.size() << " versioned and " << pending_mute_updates.size()
<< " mute updates for " << input_group_call_id;
auto process_mute_updates = [&] {
while (!pending_mute_updates.empty()) {
auto it = pending_mute_updates.begin();