mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-134 more work on node discovery
This commit is contained in:
@@ -238,12 +238,16 @@ public class NodeDiscovery {
|
||||
}
|
||||
};
|
||||
|
||||
// remove self
|
||||
final HashSet<AddressAndPort> knownHostPorts0 = new HashSet<>(knownHostPorts);
|
||||
knownHostPorts0.remove(ourAddressAndPort);
|
||||
|
||||
// add our identifier and host:port to the list of known identifiers
|
||||
knownNodes.add(ourAddressAndPort, identifier);
|
||||
|
||||
final TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig
|
||||
.of(ourAddressAndPort.getPort(),
|
||||
toInetSocketCollection(knownHostPorts))
|
||||
toInetSocketCollection(knownHostPorts0))
|
||||
.heartBeatInterval(1, SECONDS);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user