Refactor API frame helpers to enable buffer reuse (#8825)

This commit is contained in:
J. Nick Koston authored and Jesse Hills committed 2025-05-19 09:24:53 +12:00
1 parent 15d0b4355e
commit 4d54cb9b31
5 files changed
+162 -46

No files matched your search

+1 -1
View File
@@ -1962,7 +1962,7 @@ bool APIConnection::send_buffer(ProtoWriteBuffer buffer, uint32_t message_type)
}
}
APIError err = this->helper_->write_packet(message_type, buffer.get_buffer()->data(), buffer.get_buffer()->size());
APIError err = this->helper_->write_protobuf_packet(message_type, buffer);
if (err == APIError::WOULD_BLOCK)
return false;
if (err != APIError::OK) {