Skip to content

Commit

Permalink
Remove Wshadow warning for proxygen/lib/http/session/HTTPSession.cpp
Browse files Browse the repository at this point in the history
Summary: Fix a -Wshadow warning here

Reviewed By: r-barnes

Differential Revision: D52340431

fbshipit-source-id: d4098bb20d51702b69013b7ecf1edc49c93037cf
  • Loading branch information
Benwei Shi authored and facebook-github-bot committed Jan 4, 2024
1 parent 667874e commit 0c25f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxygen/lib/http/session/HTTPSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ void HTTPSession::onMessageBegin(HTTPCodec::StreamID streamID,
// txns haven't completed yet. Pause reads until they complete
DCHECK_GE(transactions_.size(), 2);
std::map<HTTPCodec::StreamID, HTTPTransaction*> sortedTxns;
for (auto& txn : transactions_) {
sortedTxns.emplace(txn.first, &txn.second);
for (auto& x : transactions_) {
sortedTxns.emplace(x.first, &x.second);
}
for (auto it = ++sortedTxns.rbegin(); it != sortedTxns.rend(); ++it) {
DCHECK(it->second->isIngressEOMSeen());
Expand Down

0 comments on commit 0c25f6b

Please sign in to comment.