From 13b5bc97529abfef57df15af20a80cda906d4d79 Mon Sep 17 00:00:00 2001 From: Wendelin Wisser Date: Sat, 25 Mar 2023 18:14:50 +0100 Subject: [PATCH] Fix blocking query example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b75b4162d..ddb929f6ef 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ public class BlockingQueryExample { //You can instantiate the client from the try-with block as it implements the java.io.Closeable interface try (SourceQueryClient client = new SourceQueryClient(queryOptions)) { InetSocketAddress address = new InetSocketAddress("192.168.60.1", 27016); - SourceServer info = client.getInfo(address).join(); + SourceServer info = client.getInfo(address).join().getResult(); System.out.printf("INFO: %s\n", info); } }