Skip to content

Commit

Permalink
fix: remove dup 'From' in filterExpiredResultFromFromBackend (#2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeeProMise authored May 8, 2023
1 parent 267ff6d commit 0f2faf4
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ protected Iterator<HugeVertex> queryVerticesFromBackend(Query query) {

Iterator<HugeVertex> vertices = new MapperIterator<>(entries,
this::parseEntry);
vertices = this.filterExpiredResultFromFromBackend(query, vertices);
vertices = this.filterExpiredResultFromBackend(query, vertices);

if (!this.store().features().supportsQuerySortByInputIds()) {
// There is no id in BackendEntry, so sort after deserialization
Expand Down Expand Up @@ -1028,7 +1028,7 @@ protected Iterator<HugeEdge> queryEdgesFromBackend(Query query) {
return new ListIterator<>(ImmutableList.copyOf(vertex.getEdges()));
});

edges = this.filterExpiredResultFromFromBackend(query, edges);
edges = this.filterExpiredResultFromBackend(query, edges);

if (!this.store().features().supportsQuerySortByInputIds()) {
// There is no id in BackendEntry, so sort after deserialization
Expand Down Expand Up @@ -1752,8 +1752,7 @@ private boolean rightResultFromIndexQuery(Query query, HugeElement elem) {
return false;
}

private <T extends HugeElement> Iterator<T>
filterExpiredResultFromFromBackend(
private <T extends HugeElement> Iterator<T> filterExpiredResultFromBackend(
Query query, Iterator<T> results) {
if (this.store().features().supportsTtl() || query.showExpired()) {
return results;
Expand Down

0 comments on commit 0f2faf4

Please sign in to comment.