mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed unused code
This commit is contained in:
@@ -16,8 +16,6 @@ public abstract class BioSocketChannelPool {
|
|||||||
socket.setKeepAlive(true);
|
socket.setKeepAlive(true);
|
||||||
socket.setReuseAddress(true);
|
socket.setReuseAddress(true);
|
||||||
socket.connect(address, BioSocketChannel.DEFAULT_CONNECT_TIMEOUT);
|
socket.connect(address, BioSocketChannel.DEFAULT_CONNECT_TIMEOUT);
|
||||||
System.out.println(socket.getReceiveBufferSize());
|
|
||||||
System.out.println(socket.getSendBufferSize());
|
|
||||||
return new BioSocketChannel(socket);
|
return new BioSocketChannel(socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,9 +64,6 @@ public class DirectLogFetcher extends LogFetcher {
|
|||||||
if ("1".equals(dbsemi)) {
|
if ("1".equals(dbsemi)) {
|
||||||
issemi = true;
|
issemi = true;
|
||||||
}
|
}
|
||||||
// 和mysql driver一样,提供buffer机制,提升读取binlog速度
|
|
||||||
// this.input = new
|
|
||||||
// BufferedInputStream(channel.socket().getInputStream(), 16384);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user