Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <[email protected]>
  • Loading branch information
ryanbogan committed Dec 1, 2023
1 parent 613a28e commit ac5df23
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,13 @@ private List<String> searchModelIds() throws IOException, InterruptedException {
modelDao.search(new SearchRequest(), new ActionListener<SearchResponse>() {
@Override
public void onResponse(SearchResponse searchResponse) {
for (SearchHit searchHit : searchResponse.getHits().getHits()) {
modelIds.add(searchHit.getId());
try {
for (SearchHit searchHit : searchResponse.getHits().getHits()) {
modelIds.add(searchHit.getId());
}
} finally {
latch.countDown();
}
latch.countDown();
}

@Override
Expand Down

0 comments on commit ac5df23

Please sign in to comment.