1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-07-29 03:41:11 +03:00

Change more instances of folly::IOBuf to the typealiases

Summary: See title

Differential Revision: D76769545

fbshipit-source-id: 0e4ff49ba34377acec4382b7e9628626f9971984
This commit is contained in:
Aman Sharma
2025-06-16 20:11:29 -07:00
committed by Facebook GitHub Bot
parent 3f2bd6f618
commit 8eef42f39b
9 changed files with 26 additions and 29 deletions

View File

@ -333,8 +333,7 @@ continuousMemoryBuildScheduleEncrypt(
packetBuf->prepend(prevSize);
if (connection.transportSettings.isPriming && packetBuf) {
packetBuf->coalesce();
connection.bufAccessor->release(
folly::IOBuf::create(packetBuf->capacity()));
connection.bufAccessor->release(BufHelpers::create(packetBuf->capacity()));
connection.primingData_.emplace_back(std::move(packetBuf));
return DataPathResult::makeWriteResult(
true, std::move(result.value()), encodedSize, encodedBodySize);
@ -1470,7 +1469,7 @@ void writeCloseCommon(
bufUniquePtr->data(),
bufUniquePtr->length(),
headerCipher);
folly::IOBuf packetBuf(std::move(packet.header));
Buf packetBuf(std::move(packet.header));
packetBuf.appendToChain(std::move(bufUniquePtr));
auto packetSize = packetBuf.computeChainDataLength();
if (connection.qLogger) {