Transport: Don't lookup RI in wasUnreachable()

to reduce netdb lookups
This commit is contained in:
zzz
2022-07-08 10:00:04 -04:00
parent 9489b41cb7
commit 8818c78cbd

View File

@@ -965,6 +965,7 @@ public abstract class TransportImpl implements Transport {
return true;
}
}
/*
RouterInfo ri = _context.netDb().lookupRouterInfoLocally(peer);
if (ri == null)
return false;
@@ -976,6 +977,8 @@ public abstract class TransportImpl implements Transport {
RouterAddress addr = ri.getTargetAddress(getStyle());
return addr == null;
}
*/
return false;
}
/**