HDFS-15476 Make AsyncStream executor private (#2151)

This commit is contained in:
Suraj Naik 2020-07-19 23:26:54 +05:30 committed by GitHub
parent 99655167f3
commit 4101b0c0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,6 @@ typedef boost::asio::const_buffers_1 ConstBuffer;
class AsyncStream { class AsyncStream {
public: public:
using executor_type = boost::asio::system_executor; using executor_type = boost::asio::system_executor;
executor_type executor_;
virtual void async_read_some(const MutableBuffer &buf, virtual void async_read_some(const MutableBuffer &buf,
std::function<void (const boost::system::error_code & error, std::function<void (const boost::system::error_code & error,
@ -54,6 +53,10 @@ public:
executor_type get_executor() { executor_type get_executor() {
return executor_; return executor_;
} }
private:
executor_type executor_;
}; };
} }