remove broken code

This commit is contained in:
J. Nick Koston
2025-06-06 07:32:44 +01:00
parent a44af63baf
commit 60ff1f6564

View File

@@ -1867,8 +1867,7 @@ void APIConnection::process_batch_() {
ESP_LOGD(TAG, "Sending batch: %zu messages, %zu total bytes", items_processed, this->proto_write_buffer_.size());
// Send all collected packets
ProtoWriteBuffer batch_buffer{&this->proto_write_buffer_};
APIError err = this->helper_->write_protobuf_packets(batch_buffer, packet_info);
APIError err = this->helper_->write_protobuf_packets(ProtoWriteBuffer{&this->proto_write_buffer_}, packet_info);
if (err != APIError::OK && err != APIError::WOULD_BLOCK) {
on_fatal_error();
if (err == APIError::SOCKET_WRITE_FAILED && errno == ECONNRESET) {