Fix watchOS building.

This commit is contained in:
levlam 2023-03-10 13:22:18 +03:00
parent 6c92eaf59e
commit 70bee089d4

View File

@ -375,6 +375,17 @@ class RawConnectionHttp final : public RawConnection {
std::shared_ptr<MpscPollableQueue<Result<BufferSlice>>> answers_;
std::vector<BufferSlice> to_send_;
void on_read(size_t size, Callback &callback) {
if (size <= 0) {
return;
}
if (stats_callback_) {
stats_callback_->on_read(size);
}
callback.on_read(size);
}
void send_packet(BufferSlice packet) {
CHECK(mode_ == Send);
mode_ = Receive;