// We need to download from A and then upload to B, so d(A, Me) + d(Me, B)
// TODO: This is a poor metric. Our metric isn't really rich enough here
return 8;
}
AsBlock asA = AsBlock.find(a.getAddress());
AsBlock asB = AsBlock.find(b.getAddress());
if (asA != null && asB != null) {
if (asA.equals(asB)) {
return 1;
}
if (Objects.equal(asA.getCountry(), asB.getCountry())) {
return 2;
}
}
return 4;