Minor fixes.

GitOrigin-RevId: 01b7c4015a8a4ee30c06b977363889d38a65bfd4
This commit is contained in:
levlam 2018-08-26 11:08:45 +03:00
parent e09cab4009
commit d8f66f8a8e
3 changed files with 4 additions and 2 deletions

View File

@ -77,7 +77,6 @@ class Client::Impl final {
private:
std::deque<Response> responses_;
std::vector<Request> requests_;
int output_queue_ready_cnt_{0};
std::unique_ptr<ConcurrentScheduler> scheduler_;
ActorOwn<Td> td_;
bool closed_ = false;
@ -87,7 +86,7 @@ class Client::Impl final {
scheduler_->init(0);
class Callback : public TdCallback {
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 {
client_->responses_.push_back({id, std::move(result)});

View File

@ -25,6 +25,7 @@
#include "td/utils/Status.h"
#include <atomic>
#include <limits>
#include <unordered_set>
#include <utility>

View File

@ -6,6 +6,8 @@
//
#include "td/net/HttpInboundConnection.h"
#include "td/net/SslStream.h"
#include "td/utils/logging.h"
namespace td {