forked from I2P_Developers/i2p.i2p
Console, NetDB: Remove deprecated isFailing() calls
This commit is contained in:
@ -114,7 +114,6 @@ class ProfileOrganizerRenderer {
|
||||
} else if (_organizer.isHighCapacity(peer)) {
|
||||
tier = 2;
|
||||
reliable++;
|
||||
} else if (_organizer.isFailing(peer)) {
|
||||
} else {
|
||||
tier = 3;
|
||||
}
|
||||
@ -183,10 +182,6 @@ class ProfileOrganizerRenderer {
|
||||
buf.append(_t("Banned"));
|
||||
ok = false;
|
||||
}
|
||||
if (prof.getIsFailing()) {
|
||||
buf.append(' ').append(_t("Failing"));
|
||||
ok = false;
|
||||
}
|
||||
if (_context.commSystem().wasUnreachable(peer)) {
|
||||
buf.append(' ').append(_t("Unreachable"));
|
||||
ok = false;
|
||||
@ -385,20 +380,11 @@ class ProfileOrganizerRenderer {
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
} else if (_context.profileOrganizer().isFailing(left.getPeer())) {
|
||||
if (_context.profileOrganizer().isFailing(right.getPeer())) {
|
||||
return super.compare(left, right);
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
// left is not failing
|
||||
if (_context.profileOrganizer().isFast(right.getPeer())) {
|
||||
return 1;
|
||||
} else if (_context.profileOrganizer().isHighCapacity(right.getPeer())) {
|
||||
return 1;
|
||||
} else if (_context.profileOrganizer().isFailing(right.getPeer())) {
|
||||
return -1;
|
||||
} else {
|
||||
return super.compare(left, right);
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ class FloodfillMonitorJob extends JobImpl {
|
||||
for (Hash peer : floodfillPeers) {
|
||||
PeerProfile profile = getContext().profileOrganizer().getProfile(peer);
|
||||
if (profile == null || profile.getLastHeardFrom() < before ||
|
||||
profile.getIsFailing() || getContext().banlist().isBanlisted(peer) ||
|
||||
getContext().banlist().isBanlisted(peer) ||
|
||||
getContext().commSystem().wasUnreachable(peer))
|
||||
failcount++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user