Don't log updates with slightly old PTS short after updates with very old PTS.

This commit is contained in:
levlam 2023-07-29 15:37:15 +03:00
parent 75b0f28d45
commit 564cbc0345

View File

@ -2821,7 +2821,7 @@ void UpdatesManager::add_pending_pts_update(tl_object_ptr<telegram_api::Update>
old_pts = get_pts(); old_pts = get_pts();
set_pts_gap_timeout(0.001); set_pts_gap_timeout(0.001);
return promise.set_value(Unit()); return promise.set_value(Unit());
} else if (now > last_pts_jump_warning_time_ + 1 && (need_restore_pts || now < last_pts_jump_warning_time_ + 5) && } else if (now > last_pts_jump_warning_time_ + 1 && need_restore_pts &&
!(old_pts == std::numeric_limits<int32>::max() && running_get_difference_)) { !(old_pts == std::numeric_limits<int32>::max() && running_get_difference_)) {
LOG(ERROR) << "Restore PTS after delete_first_messages from " << old_pts << " to " << new_pts LOG(ERROR) << "Restore PTS after delete_first_messages from " << old_pts << " to " << new_pts
<< " is disabled, pts_count = " << pts_count << ", update is from " << source << ": " << " is disabled, pts_count = " << pts_count << ", update is from " << source << ": "