added missing

final InetSocketAddress serverInetSocketAddress =
                new InetSocketAddress(replicationConfig.serverPort());
        final Details serverDetails = new Details(serverInetSocketAddress, localIdentifier);

        attached.connector = new ServerConnector(serverDetails);
This commit is contained in:
Rob Austin
2015-12-08 17:13:25 +03:00
committed by leventov
parent 497cf9c470
commit e1c4b972b0
@@ -513,6 +513,12 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
channel.socket().setSoLinger(false, 0);
final Attached attached = new Attached();
final InetSocketAddress serverInetSocketAddress =
new InetSocketAddress(replicationConfig.serverPort());
final Details serverDetails = new Details(serverInetSocketAddress, localIdentifier);
attached.connector = new ServerConnector(serverDetails);
attached.entryReader = new TcpSocketChannelEntryReader();
attached.entryWriter = new TcpSocketChannelEntryWriter();
@@ -924,8 +930,7 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
}
@Nullable
SelectableChannel doConnect() throws
IOException, InterruptedException {
SelectableChannel doConnect() throws IOException, InterruptedException {
final ServerSocketChannel serverChannel = openServerSocketChannel();