Actually updating the node latency

This commit is contained in:
Nelson R. Perez 2019-02-13 23:30:25 -05:00
parent 095d4f858b
commit 4181141b4e

View file

@ -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;