Actually updating the node latency
This commit is contained in:
parent
095d4f858b
commit
4181141b4e
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ public class LatencyNodeProvider implements NodeProvider {
|
|||
public boolean updateNode(FullNode fullNode, int latency){
|
||||
boolean existed = mFullNodeHeap.remove(fullNode);
|
||||
if(existed){
|
||||
fullNode.addLatencyValue(latency);
|
||||
return mFullNodeHeap.add(fullNode);
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue