fix failing on debug mode (#2079)

This commit is contained in:
Martin Chang 2024-06-20 20:52:14 +08:00 committed by GitHub
parent 88bf6f7fcb
commit e7eff323a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ void Http2Transport::sendRequestInLoop(const HttpRequestPtr &req,
// -2 because we are using the next stream id for the next request
// TODO: Clean interface to get the current highest stream id. Might need
// to keep tracking separately
const auto streamId = *sid - 2;
const auto streamId = *sid;
assert(streamId % 2 == 1);
LOG_TRACE << "Sending HTTP/2 request: streamId=" << streamId;
if (streams.find(streamId) != streams.end())