Skip to content

Commit 4101b0c

Browse files
authored
HDFS-15476 Make AsyncStream executor private (#2151)
1 parent 9965516 commit 4101b0c

File tree

1 file changed

+4
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common

1 file changed

+4
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/async_stream.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ typedef boost::asio::const_buffers_1 ConstBuffer;
4141
class AsyncStream {
4242
public:
4343
using executor_type = boost::asio::system_executor;
44-
executor_type executor_;
4544

4645
virtual void async_read_some(const MutableBuffer &buf,
4746
std::function<void (const boost::system::error_code & error,
@@ -54,6 +53,10 @@ class AsyncStream {
5453
executor_type get_executor() {
5554
return executor_;
5655
}
56+
57+
private:
58+
executor_type executor_;
59+
5760
};
5861

5962
}

0 commit comments

Comments
 (0)