We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329b747 commit 9f5d767Copy full SHA for 9f5d767
src/main/java/com/github/brainlag/nsq/lookup/DefaultNSQLookup.java
@@ -42,7 +42,7 @@ public Set<ServerAddress> lookup(String topic) {
42
String topicEncoded = URLEncoder.encode(topic, Charsets.UTF_8.name());
43
JsonNode jsonNode = mapper.readTree(new URL(addr + "/lookup?topic=" + topicEncoded));
44
LogManager.getLogger(this).debug("Server connection information: {}", jsonNode);
45
- JsonNode producers = jsonNode.get("data").get("producers");
+ JsonNode producers = jsonNode.findValue("producers");
46
for (JsonNode node : producers) {
47
String host = node.get("broadcast_address").asText();
48
ServerAddress address = new ServerAddress(host, node.get("tcp_port").asInt());
0 commit comments