Skip to content

Commit

Permalink
quic: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Dec 9, 2023
1 parent 7ca1bfb commit 918abb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dataqueue/queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 918abb9

Please sign in to comment.