Skip to content

Commit 0d73227

Browse files
committed
fix sonsensus
1 parent f4ed04a commit 0d73227

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/tron/consensus/client/Client.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public class Client {
4545
client.serializer().register(PutCommand.class);
4646
client.serializer().register(GetQuery.class);
4747

48-
Collection<Address> cluster = Arrays.asList(
48+
/*Collection<Address> cluster = Arrays.asList(
4949
new Address("192.168.0.100", 5000)
5050
);
5151
CompletableFuture<CopycatClient> future = client.connect(cluster);
52-
future.join();
53-
/*InetAddress localhost = null;
52+
future.join();*/
53+
InetAddress localhost = null;
5454
try {
5555
localhost = InetAddress.getLocalHost();
5656
Collection<Address> cluster = Arrays.asList(
@@ -61,7 +61,7 @@ public class Client {
6161
future.join();
6262
} catch (UnknownHostException e) {
6363
e.printStackTrace();
64-
}*/
64+
}
6565
}
6666

6767
public static CopycatClient getClient() {

0 commit comments

Comments
 (0)