diff options
author | Magdalena GrodziĆska <mag.grodzinska@gmail.com> | 2020-01-11 19:01:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-11 19:01:32 +0100 |
commit | 9cb9ade0f9112acabf6634f65aa054cb1b484390 (patch) | |
tree | 664ec559941efc3270be06e12ca63738ba714241 /src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java | |
parent | 5dcdf0ab716c9edefb448a4b12e8225bd921c8e7 (diff) | |
parent | eb93e15925f7062cf3ffdb0e3712bbbf8bd46ee9 (diff) |
Merge branch 'master' into improve_frontend
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java index b478f1f..58b55da 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java @@ -155,6 +155,7 @@ public class Agent { PathName gossipLevel = gossipGirlStrategies.selectStrategy(zoneSelectionStrategy); ValueContact contact = selectContactFromLevel(gossipLevel); if (contact != null) { + System.out.println("INFO: found a contact " + contact.toString()); InitiateGossipMessage message = new InitiateGossipMessage("", 0, new PathName("/uw/violet07"), contact); sendMessage(message); } else { @@ -188,7 +189,7 @@ public class Agent { } private static ValueContact selectFallbackContact() throws Exception { - return selectContactFromSet(new HashSet()); + return null; } private static ZMI selectZMI(List<ZMI> zmis) throws Exception { |