优化代码

This commit is contained in:
xiongziliang 2019-12-29 16:54:02 +08:00
parent f48e611253
commit 4d42459004
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class HttpBody : public std::enable_shared_from_this<HttpBody>{
public: public:
typedef std::shared_ptr<HttpBody> Ptr; typedef std::shared_ptr<HttpBody> Ptr;
HttpBody(){ HttpBody(){
_async_read_thread = WorkThreadPool::Instance().getPoller(); // _async_read_thread = WorkThreadPool::Instance().getPoller();
} }
virtual ~HttpBody(){} virtual ~HttpBody(){}
@ -94,7 +94,7 @@ public:
#endif #endif
} }
private: private:
EventPoller::Ptr _async_read_thread; // EventPoller::Ptr _async_read_thread;
}; };
/** /**