From 3705107ce61c7a0cf96595b1555034731f26936e Mon Sep 17 00:00:00 2001 From: Joshua Kissoon Date: Thu, 8 May 2014 10:41:51 +0530 Subject: [PATCH] KademliaNode - Removed the isRunning boolean since it's not used - Made the statistician transient since we only keep stats temporary --- src/kademlia/KademliaNode.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/kademlia/KademliaNode.java b/src/kademlia/KademliaNode.java index 14393ed..b6283f5 100644 --- a/src/kademlia/KademliaNode.java +++ b/src/kademlia/KademliaNode.java @@ -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) {