mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-11-21 17:52:21 +00:00
Removed some unnecessary print statements
This commit is contained in:
parent
37337afc66
commit
0c4a40d9ca
@ -121,7 +121,6 @@ public class KadServer
|
||||
if (recv != null)
|
||||
{
|
||||
/* Setup the receiver to handle message response */
|
||||
//System.out.println(this.localNode + " Putting Receiver for comm: " + comm + " Receiver: " + recv);
|
||||
receivers.put(comm, recv);
|
||||
TimerTask task = new TimeoutTask(comm, recv);
|
||||
timer.schedule(task, this.config.responseTimeout());
|
||||
@ -210,8 +209,6 @@ public class KadServer
|
||||
Message msg = messageFactory.createMessage(messCode, din);
|
||||
din.close();
|
||||
|
||||
//System.out.println(this.localNode.getNodeId() + " Message Received: [Comm: " + comm + "] " + msg);
|
||||
|
||||
/* Get a receiver for this message */
|
||||
Receiver receiver;
|
||||
if (this.receivers.containsKey(comm))
|
||||
|
@ -85,7 +85,6 @@ class StoredContentManager
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println(this);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -51,7 +51,6 @@ public class ContentLookupReceiver implements Receiver
|
||||
* Return a the K closest nodes to this content identifier
|
||||
* We create a NodeLookupReceiver and let this receiver handle this operation
|
||||
*/
|
||||
System.out.println("We do not have this content");
|
||||
NodeLookupMessage lkpMsg = new NodeLookupMessage(msg.getOrigin(), msg.getParameters().getKey());
|
||||
new NodeLookupReceiver(server, localNode, this.config).receive(lkpMsg, comm);
|
||||
}
|
||||
|
@ -14,12 +14,12 @@ public class SimpleReceiver implements Receiver
|
||||
@Override
|
||||
public void receive(Message incoming, int conversationId)
|
||||
{
|
||||
System.out.println("Received message: " + incoming);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void timeout(int conversationId) throws IOException
|
||||
{
|
||||
System.out.println("SimpleReceiver message timeout.");
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -245,7 +245,6 @@ public class ContentLookupOperation implements Operation, Receiver
|
||||
|
||||
/* Get the Content and check if it satisfies the required parameters */
|
||||
StorageEntry content = msg.getContent();
|
||||
System.out.println("Content Received: " + content);
|
||||
this.contentFound = content;
|
||||
this.isContentFound = true;
|
||||
}
|
||||
|
@ -261,8 +261,6 @@ public class RoutingTable implements KadRoutingTable
|
||||
{
|
||||
int bucketId = this.getBucketId(n.getNodeId());
|
||||
|
||||
//System.out.println(this.localNode + " Removing unresponsive node " + n);
|
||||
|
||||
/* Remove the contact from the bucket */
|
||||
this.buckets[bucketId].removeNode(n);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user