Changeset de09443


Ignore:
Timestamp:
Aug 19, 2011 3:29:37 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
10f3337
Parents:
0dee248
Message:

cleanup

File:
1 edited

Legend:

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

    r0dee248 rde09443  
    2020 */
    2121class FloodfillMonitorJob extends JobImpl {
    22     private Log _log;
    23     private FloodfillNetworkDatabaseFacade _facade;
     22    private final Log _log;
     23    private final FloodfillNetworkDatabaseFacade _facade;
    2424    private long _lastChanged;
    2525   
     
    8181
    8282        // This list will not include ourselves...
    83         List floodfillPeers = _facade.getFloodfillPeers();
     83        List<Hash> floodfillPeers = _facade.getFloodfillPeers();
    8484        long now = getContext().clock().now();
    8585        // We know none at all! Must be our turn...
     
    109109        int failcount = 0;
    110110        long before = now - 60*60*1000;
    111         for (int i = 0; i < ffcount; i++) {
    112             Hash peer = (Hash)floodfillPeers.get(i);
     111        for (Hash peer : floodfillPeers) {
    113112            PeerProfile profile = getContext().profileOrganizer().getProfile(peer);
    114113            if (profile == null || profile.getLastHeardFrom() < before ||
Note: See TracChangeset for help on using the changeset viewer.