mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-11-21 17:52:21 +00:00
KademliaNode
- Removed the isRunning boolean since it's not used - Made the statistician transient since we only keep stats temporary
This commit is contained in:
parent
1ff0fb8284
commit
3705107ce6
@ -61,14 +61,11 @@ public class KademliaNode
|
||||
private transient Timer refreshOperationTimer;
|
||||
private transient TimerTask refreshOperationTTask;
|
||||
|
||||
/* Whether this node is up and running */
|
||||
private boolean isRunning = false;
|
||||
|
||||
/* Factories */
|
||||
private final transient MessageFactory messageFactory;
|
||||
|
||||
/* Statistics */
|
||||
private final KadStatistician statistician;
|
||||
private final transient KadStatistician statistician;
|
||||
|
||||
|
||||
{
|
||||
@ -103,7 +100,6 @@ public class KademliaNode
|
||||
this.messageFactory = new MessageFactory(this, this.dht, this.config);
|
||||
this.server = new KadServer(udpPort, this.messageFactory, this.localNode, this.config, this.statistician);
|
||||
this.startRefreshOperation();
|
||||
this.isRunning = true;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -379,8 +375,6 @@ public class KademliaNode
|
||||
|
||||
this.stopRefreshOperation();
|
||||
|
||||
this.isRunning = false;
|
||||
|
||||
/* Save this Kademlia instance's state if required */
|
||||
if (saveState)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user