Skip to content

Commit

Permalink
call more efficient method for findNode(id,cache)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Feb 7, 2017
1 parent 8a68a69 commit d50cde0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -160,7 +160,7 @@ public Node findNode(String id, boolean useCache) {
}
return nodeCache.get(id);
} else {
return findAllNodesAsMap().get(id);
return findNode(id);
}
}

Expand Down
Expand Up @@ -57,7 +57,6 @@ public void handle(HttpServletRequest req, HttpServletResponse res) throws IOExc
if (log.isDebugEnabled()) {
log.debug("Reading ack: {}", req.getParameterMap());
}
@SuppressWarnings("unchecked")
List<BatchAck> batches = AbstractTransportManager.readAcknowledgement(req
.getParameterMap());
Collections.sort(batches, BATCH_ID_COMPARATOR);
Expand Down

0 comments on commit d50cde0

Please sign in to comment.