Skip to content

Commit

Permalink
merge fix from master
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Feb 9, 2024
2 parents 6ec7b79 + 2920a76 commit 5ddeb4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gsrest/db/cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ def merge_address_txs_subquery_results(
or not ascending and v[tx_id_keys] >= border_tx_id
]

results = heapq.nlargest(fetch_size,
candidates,
key=partial(transaction_ordering_key, tx_id_keys))

# Merge overlapping result sets by given sort order (uses a priority
# queue; heapq)
# fetch_sized items or less are returned
Expand Down

0 comments on commit 5ddeb4b

Please sign in to comment.