fixed noide
This commit is contained in:
parent
54d7791990
commit
308a6ecfb5
@ -390,13 +390,17 @@ public class Node {
|
||||
return routingTable.getEntries();
|
||||
}
|
||||
|
||||
public void storePair(Identifier key, NodeIdentifier id) {
|
||||
values.put(key, id);
|
||||
public void storePair(Identifier key, Identifier nodeid) {
|
||||
values.put(key, nodeid);
|
||||
}
|
||||
|
||||
public void store(Identifier key) {
|
||||
|
||||
storePair(key,this.nodeID);
|
||||
|
||||
Set<NodeIdentifier> nodes = routingTable.getClosestNodesTo(key);
|
||||
|
||||
|
||||
for (NodeIdentifier node : nodes) {
|
||||
sendStore(node, key);
|
||||
}
|
||||
@ -405,6 +409,7 @@ public class Node {
|
||||
public void findValue(Identifier key) {
|
||||
Set<NodeIdentifier> nodes = routingTable.getClosestNodesTo(key);
|
||||
|
||||
|
||||
for (NodeIdentifier node : nodes) {
|
||||
sendFindValue(node, key);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user