[DOCS] Fix Java API TransportClient example

This commit is contained in:
Simon Willnauer 2015-08-24 15:13:13 +02:00
parent ad3234d475
commit efa39a0eb0
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ be "two hop" operations).
// on startup
Client client = TransportClient.builder().build()
.addTransportAddress(new InetSocketTransportAddress("host1", 9300))
.addTransportAddress(new InetSocketTransportAddress("host2", 9300));
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300))
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300));
// on shutdown