Make PrioritizedPacketQueue the default.

Keeping the field trial around as a kill-switch for another milestone.

Bug: webrtc:11340
Change-Id: I3285baefab176f541cbb5ed3bacbc669d3e8836f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/269384
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37611}
This commit is contained in:
Erik Språng 2022-07-25 15:00:18 +02:00 committed by WebRTC LUCI CQ
parent ed6b586b62
commit 06a6f3f818

View File

@ -48,10 +48,10 @@ bool IsEnabled(const FieldTrialsView& field_trials, absl::string_view key) {
std::unique_ptr<PacingController::PacketQueue> CreatePacketQueue(
const FieldTrialsView& field_trials,
Timestamp creation_time) {
if (field_trials.IsEnabled("WebRTC-Pacer-UsePrioritizedPacketQueue")) {
return std::make_unique<PrioritizedPacketQueue>(creation_time);
if (field_trials.IsDisabled("WebRTC-Pacer-UsePrioritizedPacketQueue")) {
return std::make_unique<RoundRobinPacketQueue>(creation_time);
}
return std::make_unique<RoundRobinPacketQueue>(creation_time);
return std::make_unique<PrioritizedPacketQueue>(creation_time);
}
} // namespace