Commit 963c9e6a authored by knowledge4igor's avatar knowledge4igor

Delete obsolete tranport_ field in Client class

parent 0a950855
......@@ -358,7 +358,6 @@ private:
std::shared_ptr<Aio::Reactor> reactor_;
ConnectionPool pool;
std::shared_ptr<Transport> transport_;
Aio::Reactor::Key transportKey;
std::atomic<uint64_t> ioIndex;
......
......@@ -699,7 +699,6 @@ Client::Options::maxConnectionsPerHost(int val) {
Client::Client()
: reactor_(Aio::Reactor::create())
, pool()
, transport_()
, transportKey()
, ioIndex(0)
, queuesLock()
......@@ -719,9 +718,8 @@ Client::options() {
void
Client::init(const Client::Options& options) {
pool.init(options.maxConnectionsPerHost_);
transport_ = std::make_shared<Transport>();
reactor_->init(Aio::AsyncContext(options.threads_));
transportKey = reactor_->addHandler(transport_);
transportKey = reactor_->addHandler(std::make_shared<Transport>());
reactor_->run();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment