mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-12-22 15:51:46 +00:00
Changed the server to use Kademlia Message Factory interface rather than the specific class
This commit is contained in:
parent
fd0620aaf1
commit
ce5c49d46d
@ -13,8 +13,8 @@ import java.util.Map;
|
||||
import java.util.Random;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
import kademlia.KadStatistician;
|
||||
import kademlia.exceptions.KadServerDownException;
|
||||
import kademlia.message.KademliaMessageFactory;
|
||||
import kademlia.message.Message;
|
||||
import kademlia.message.MessageFactory;
|
||||
import kademlia.node.Node;
|
||||
@ -45,7 +45,7 @@ public class KadServer
|
||||
private final Node localNode;
|
||||
|
||||
/* Factories */
|
||||
private final MessageFactory messageFactory;
|
||||
private final KademliaMessageFactory messageFactory;
|
||||
|
||||
private final KadStatistician statistician;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user