Skip to content

Commit 918abb9

Browse files
committed
quic: address review comments
1 parent 7ca1bfb commit 918abb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dataqueue/queue.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ class DataQueueImpl final : public DataQueue,
176176

177177
void NotifyBackpressure(size_t amount) {
178178
if (idempotent_) return;
179-
for (auto listener : backpressure_listeners_) listener->EntryRead(amount);
179+
for (auto& listener : backpressure_listeners_) listener->EntryRead(amount);
180180
}
181181

182-
bool HasBackpressureListeners() const {
182+
bool HasBackpressureListeners() const noexcept {
183183
return !backpressure_listeners_.empty();
184184
}
185185

0 commit comments

Comments
 (0)