1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 17:53:39 +02:00

Cleaned up

This commit is contained in:
Tristan B. Kildaire 2021-01-29 21:38:50 +02:00
parent 905ad50188
commit ae93617b79

View File

@ -159,13 +159,13 @@ public final class DLink : Thread
public final class DMeyer public final class DMeyer
{ {
/* Direct peers */ /* Direct peers */
private DLink[] links; private DLink[] outboundPeers;
private Mutex linksMutex; private Mutex linksMutex;
/* Associated server */ /* Associated server */
private DServer server; private DServer server;
this(DServer server, DLink[] links) this(DServer server, DLink[] outboundPeers)
{ {
this.server = server; this.server = server;
@ -177,16 +177,9 @@ public final class DMeyer
/* TODO: Open connections to all servers we are yet to open a connection to (check the `links` array) */ /* TODO: Open connections to all servers we are yet to open a connection to (check the `links` array) */
this.links = links; this.outboundPeers = outboundPeers;
} }
/**
* Locks the link list
*/
private void openAllOutboundConnections()
{
}
/* Initialize locks */ /* Initialize locks */
private void initLocks() private void initLocks()
@ -196,6 +189,6 @@ public final class DMeyer
public DLink[] getOutboundLinks() public DLink[] getOutboundLinks()
{ {
return links; return outboundPeers;
} }
} }