forked from I2P_Developers/i2p.i2p
* NetDb: Lower min RouterInfo expiration to 2.5h (was 3h)
* i2psnark debug logging tweak
This commit is contained in:
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 6;
|
||||
public final static long BUILD = 7;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@@ -121,7 +121,7 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
|
||||
* know anyone or just started up) -- see validate() below
|
||||
*/
|
||||
private final static long ROUTER_INFO_EXPIRATION = 3*24*60*60*1000l;
|
||||
private final static long ROUTER_INFO_EXPIRATION_MIN = 3*60*60*1000l;
|
||||
private final static long ROUTER_INFO_EXPIRATION_MIN = 150*60*1000l;
|
||||
private final static long ROUTER_INFO_EXPIRATION_SHORT = 90*60*1000l;
|
||||
private final static long ROUTER_INFO_EXPIRATION_FLOODFILL = 60*60*1000l;
|
||||
|
||||
|
@@ -152,7 +152,8 @@ class PersistentDataStore extends TransientDataStore {
|
||||
}
|
||||
public String getName() { return "Remove Key"; }
|
||||
public void runJob() {
|
||||
_log.info("Removing key " + _key /* , getAddedBy() */);
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
_log.info("Removing key " + _key /* , getAddedBy() */);
|
||||
try {
|
||||
File dbDir = getDbDir();
|
||||
removeFile(_key, dbDir);
|
||||
|
Reference in New Issue
Block a user