Minor fixes.
GitOrigin-RevId: 01b7c4015a8a4ee30c06b977363889d38a65bfd4
This commit is contained in:
parent
e09cab4009
commit
d8f66f8a8e
@ -77,7 +77,6 @@ class Client::Impl final {
|
|||||||
private:
|
private:
|
||||||
std::deque<Response> responses_;
|
std::deque<Response> responses_;
|
||||||
std::vector<Request> requests_;
|
std::vector<Request> requests_;
|
||||||
int output_queue_ready_cnt_{0};
|
|
||||||
std::unique_ptr<ConcurrentScheduler> scheduler_;
|
std::unique_ptr<ConcurrentScheduler> scheduler_;
|
||||||
ActorOwn<Td> td_;
|
ActorOwn<Td> td_;
|
||||||
bool closed_ = false;
|
bool closed_ = false;
|
||||||
@ -87,7 +86,7 @@ class Client::Impl final {
|
|||||||
scheduler_->init(0);
|
scheduler_->init(0);
|
||||||
class Callback : public TdCallback {
|
class Callback : public TdCallback {
|
||||||
public:
|
public:
|
||||||
Callback(Impl *client) : client_(client) {
|
explicit Callback(Impl *client) : client_(client) {
|
||||||
}
|
}
|
||||||
void on_result(std::uint64_t id, td_api::object_ptr<td_api::Object> result) override {
|
void on_result(std::uint64_t id, td_api::object_ptr<td_api::Object> result) override {
|
||||||
client_->responses_.push_back({id, std::move(result)});
|
client_->responses_.push_back({id, std::move(result)});
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <limits>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
//
|
//
|
||||||
#include "td/net/HttpInboundConnection.h"
|
#include "td/net/HttpInboundConnection.h"
|
||||||
|
|
||||||
|
#include "td/net/SslStream.h"
|
||||||
|
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
Reference in New Issue
Block a user