Fix a misused variable. (#7309)

This commit is contained in:
吴晟 Wu Sheng 2021-07-15 19:31:50 +08:00 committed by GitHub
parent c59ee90029
commit 408bbf86e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -83,9 +83,9 @@ public class MetricsEsDAO extends EsDAO implements IMetricsDAO {
// the current day and the T-1 day(if at the edge between days)
List<Metrics> result = new ArrayList<>(metrics.size());
groupIndices.forEach((tableName, metricList) -> {
String[] ids = metrics.stream()
.map(item -> IndexController.INSTANCE.generateDocId(model, item.id()))
.toArray(String[]::new);
String[] ids = metricList.stream()
.map(item -> IndexController.INSTANCE.generateDocId(model, item.id()))
.toArray(String[]::new);
try {
SearchResponse response = getClient().ids(tableName, ids);
for (int i = 0; i < response.getHits().getHits().length; i++) {