Skip to content

Commit

Permalink
fixed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
agapple committed Jul 20, 2018
1 parent d520260 commit 7b52568
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ public static BioSocketChannel open(SocketAddress address) throws Exception {
socket.setKeepAlive(true);
socket.setReuseAddress(true);
socket.connect(address, BioSocketChannel.DEFAULT_CONNECT_TIMEOUT);
System.out.println(socket.getReceiveBufferSize());
System.out.println(socket.getSendBufferSize());
return new BioSocketChannel(socket);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ public void start(SocketChannel channel) throws IOException {
if ("1".equals(dbsemi)) {
issemi = true;
}
// 和mysql driver一样,提供buffer机制,提升读取binlog速度
// this.input = new
// BufferedInputStream(channel.socket().getInputStream(), 16384);
}

/**
Expand Down

0 comments on commit 7b52568

Please sign in to comment.