From 918abb9de56799bb92b054109b70a2e3ffbbca50 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sat, 9 Dec 2023 09:17:55 -0800 Subject: [PATCH] quic: address review comments --- src/dataqueue/queue.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dataqueue/queue.cc b/src/dataqueue/queue.cc index e6b7a4893b4bf5..c3de4eb570beab 100644 --- a/src/dataqueue/queue.cc +++ b/src/dataqueue/queue.cc @@ -176,10 +176,10 @@ class DataQueueImpl final : public DataQueue, void NotifyBackpressure(size_t amount) { if (idempotent_) return; - for (auto listener : backpressure_listeners_) listener->EntryRead(amount); + for (auto& listener : backpressure_listeners_) listener->EntryRead(amount); } - bool HasBackpressureListeners() const { + bool HasBackpressureListeners() const noexcept { return !backpressure_listeners_.empty(); }