Changeset 43afe7b


Ignore:
Timestamp:
Jul 31, 2011 1:32:07 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ee82a61
Parents:
29ce3c7c
Message:

cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r29ce3c7c r43afe7b  
    104104   
    105105    /** don't probe or broadcast data, just respond and search when explicitly needed */
    106     private boolean _quiet = false;
     106    private final boolean QUIET = false;
    107107   
    108108    public static final String PROP_ENFORCE_NETID = "router.networkDatabase.enforceNetId";
     
    257257       
    258258        // expire old leases
    259         _context.jobQueue().addJob(new ExpireLeasesJob(_context, this));
     259        Job elj = new ExpireLeasesJob(_context, this);
     260        elj.getTiming().setStartAfter(_context.clock().now() + 2*60*1000);
     261        _context.jobQueue().addJob(elj);
    260262       
    261263        // the ExpireRoutersJob never fired since the tunnel pool manager lied
     
    266268        ////_context.jobQueue().addJob(new ExpireRoutersJob(_context, this));
    267269       
    268         if (!_quiet) {
     270        if (!QUIET) {
    269271            // fill the search queue with random keys in buckets that are too small
    270272            // Disabled since KBucketImpl.generateRandomKey() is b0rked,
     
    284286            _context.jobQueue().addJob(_exploreJob);
    285287            // if configured to do so, periodically try to get newer routerInfo stats
    286             if (_harvestJob == null && "true".equals(_context.getProperty(HarvesterJob.PROP_ENABLED)))
     288            if (_harvestJob == null && _context.getBooleanProperty(HarvesterJob.PROP_ENABLED))
    287289                _harvestJob = new HarvesterJob(_context, this);
    288290            _context.jobQueue().addJob(_harvestJob);
Note: See TracChangeset for help on using the changeset viewer.