Skip to content

Commit

Permalink
move bootstrap peers test systems to its test class
Browse files Browse the repository at this point in the history
var assignment not needed  elsewhere.
  • Loading branch information
reger committed Jul 27, 2014
1 parent 7328c28 commit 6c10b59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/net/yacy/cora/federate/yacy/Peers.java
Expand Up @@ -37,11 +37,6 @@

public class Peers extends TreeMap<byte[], Peer> implements Serializable {

public final static String[] bootstrapPeers = new String[]{
"search.yacy.net", "yacy.dyndns.org:8000", "yacy-websuche.mxchange.org:8090",
"sokrates.homeunix.net:6070", "sokrates.homeunix.net:9090",
"141.52.175.27:8080", "62.75.214.113:8080", "141.52.175.30:8080"};

private final static ConcurrentLog log = new ConcurrentLog(Peers.class.getName());
private static final long serialVersionUID = -2939656606305545080L;
private long lastBootstrap;
Expand Down Expand Up @@ -159,8 +154,13 @@ public static synchronized String[] bootstrapList(List<Peer> peers) {
}

public static void main(String[] args) {
final String[] bootstrapPeers = new String[]{
"search.yacy.net", "yacy.dyndns.org:8000", "yacy-websuche.mxchange.org:8090",
"sokrates.homeunix.net:6070", "sokrates.homeunix.net:9090",
"141.52.175.27:8080", "62.75.214.113:8080", "141.52.175.30:8080"};

Peers peers = new Peers();
peers.bootstrap(Peers.bootstrapPeers, 4);
peers.bootstrap(bootstrapPeers, 4);
//Peers peers = Network.getNetwork("sokrates.homeunix.net:9090");
/*
for (Peer p: peers.values()) {
Expand Down

0 comments on commit 6c10b59

Please sign in to comment.